fix: resolve system prompt overrides
This commit is contained in:
parent
41cc5bcd4f
commit
b8174decf3
1 changed files with 5 additions and 2 deletions
|
|
@ -74,8 +74,11 @@ export function buildEmbeddedSystemPrompt(params: {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createSystemPromptOverride(systemPrompt: string): string {
|
export function createSystemPromptOverride(
|
||||||
return systemPrompt.trim();
|
systemPrompt: string,
|
||||||
|
): (defaultPrompt?: string) => string {
|
||||||
|
const override = systemPrompt.trim();
|
||||||
|
return (_defaultPrompt?: string) => override;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function applySystemPromptOverrideToSession(
|
export function applySystemPromptOverrideToSession(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue