소스 검색

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

feix0518 22 시간 전
부모
커밋
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(