Преглед изворни кода

Add instructions on response language

Shun Miyazawa пре 1 година
родитељ
комит
b75ded2862
1 измењених фајлова са 1 додато и 0 уклоњено
  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('');