소스 검색

尝试解决chat api解答非技术问题时,解释不查数据库的原因,准备修改去除Final Answer: [Formatted Output].

wangxq 1 개월 전
부모
커밋
76916624b8
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      test/custom_react_agent/agent.py
  2. 1 1
      test/custom_react_agent/config.py

+ 3 - 1
test/custom_react_agent/agent.py

@@ -1058,7 +1058,9 @@ When generate_sql returns an error message or when queries return no results:
    - Acknowledge the limitation and suggest the data may not be available
    - Do not attempt to guess or fabricate specific data
 
-Please intelligently choose whether to query the database based on the nature of the user's question."""
+Please intelligently choose whether to query the database based on the nature of the user's question,
+not on explaining your decision-making process.
+"""
             
             return prompt
             

+ 1 - 1
test/custom_react_agent/config.py

@@ -15,7 +15,7 @@ PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(_
 # qwen3-30b-a3b
 QWEN_API_KEY = "sk-db68e37f00974031935395315bfe07f0"
 QWEN_BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1"
-QWEN_MODEL = "qwen3-30b-a3b"
+QWEN_MODEL = "qwen3-235b-a22b"
 
 # --- Redis 配置 ---
 REDIS_URL = "redis://localhost:6379"