feat: switch prompts based on selected chat model (#754)
This commit is contained in:
parent
c61d4f91d4
commit
711da0b94b
2 changed files with 21 additions and 19 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue