feat: switch prompts based on selected chat model (#754)

This commit is contained in:
Jeremy 2025-02-03 20:41:32 +05:30 committed by GitHub
parent c61d4f91d4
commit 711da0b94b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 19 deletions

View file

@ -34,7 +34,17 @@ Do not update document right after creating it. Wait for user feedback or reques
export const regularPrompt =
'You are a friendly assistant! Keep your responses concise and helpful.';
export const systemPrompt = `${regularPrompt}\n\n${blocksPrompt}`;
export const systemPrompt = ({
selectedChatModel,
}: {
selectedChatModel: string;
}) => {
if (selectedChatModel === 'chat-model-reasoning') {
return regularPrompt;
} else {
return `${regularPrompt}\n\n${blocksPrompt}`;
}
};
export const codePrompt = `
You are a Python code generator that creates self-contained, executable code snippets. When writing code: