Sfoglia il codice sorgente

Add instructions on response language

Shun Miyazawa 1 anno fa
parent
commit
b75ded2862
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      apps/app/src/features/openai/server/services/openai.ts

+ 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 systemMessage = [
       '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.',
     ].join('');