浏览代码

优化了翻译接口的提示词 /api/translate

feix0518 20 小时之前
父节点
当前提交
aa581ab0a2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xinkeaboard-gemini-langgraph_prompt/backend/src/agent/app.py

+ 1 - 1
xinkeaboard-gemini-langgraph_prompt/backend/src/agent/app.py

@@ -103,7 +103,7 @@ async def translate(request: TranslationRequest):
     )
     
     # Create translation prompt
-    prompt = f"Translate the following Chinese text to English:\n\n{request.text}\n\nTranslation:"
+    prompt = f"Translate the following text to English:\n\n{request.text}\n\nTranslation:"
     
     # Run the translation
     result = await asyncio.get_event_loop().run_in_executor(