mirror of
https://github.com/FJurmanovic/sugarr.git
synced 2026-11-11 15:51:09 +00:00
Fix LangfusePromptGateway compile() to match langfuse SDK's Record<string,string> variable type
This commit is contained in:
@@ -19,7 +19,10 @@ export class LangfusePromptGateway implements PromptFetcher {
|
||||
version: prompt.version,
|
||||
config: (prompt.config ?? {}) as Record<string, unknown>,
|
||||
compile: (variables) =>
|
||||
prompt.compile(variables) as { role: 'system' | 'user' | 'assistant'; content: string }[],
|
||||
prompt.compile(variables as Record<string, string>) as {
|
||||
role: 'system' | 'user' | 'assistant';
|
||||
content: string;
|
||||
}[],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user