Browse Source

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

feix0518 22 hours ago
parent
commit
aa581ab0a2
1 changed files with 1 additions and 1 deletions
  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(