Procházet zdrojové kódy

Add instructions on response language

Shun Miyazawa před 1 rokem
rodič
revize
b75ded2862

+ 1 - 0
apps/app/src/features/openai/server/services/openai.ts

@@ -99,6 +99,7 @@ class OpenaiService implements IOpenaiService {
     const model = configManager.getConfig('openai:assistantModel:chat');
     const model = configManager.getConfig('openai:assistantModel:chat');
     const systemMessage = [
     const systemMessage = [
       'Create a brief title (max 5 words) from your message.',
       'Create a brief title (max 5 words) from your message.',
+      'Respond in the same language the user uses in their input.',
       'Response should only contain the title.',
       'Response should only contain the title.',
     ].join('');
     ].join('');