mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 13:34:58 +00:00
fix: resolve system prompt overrides
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user