mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-21 16:41:56 +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 {
|
||||
return systemPrompt.trim();
|
||||
export function createSystemPromptOverride(
|
||||
systemPrompt: string,
|
||||
): (defaultPrompt?: string) => string {
|
||||
const override = systemPrompt.trim();
|
||||
return (_defaultPrompt?: string) => override;
|
||||
}
|
||||
|
||||
export function applySystemPromptOverrideToSession(
|
||||
|
||||
Reference in New Issue
Block a user