Quellcode durchsuchen

feat(chrome-extension): 为 AI 任务指令添加中文回答要求

- 在任务指令中加入了要求 AI 使用中文回答的说明
- 这个修改确保 AI 在执行任务时会使用中文进行交流
chd vor 3 Monaten
Ursprung
Commit
c58233706e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      chrome-extension/src/background/agent/messages/service.ts

+ 1 - 1
chrome-extension/src/background/agent/messages/service.ts

@@ -138,7 +138,7 @@ export default class MessageManager {
    * @returns A HumanMessage object containing the task instructions
    */
   private static taskInstructions(task: string): HumanMessage {
-    const content = `Your ultimate task is: """${task}""". If you achieved your ultimate task, stop everything and use the done action in the next step to complete the task. If not, continue as usual.`;
+    const content = `Your ultimate task is: """${task}""". If you achieved your ultimate task, stop everything and use the done action in the next step to complete the task. If not, continue as usual.你的所有回答都要用中文回答.`;
     return new HumanMessage({ content });
   }