删除提示词中多余空格、换行等。减少不必要的token

This commit is contained in:
2025-09-26 11:31:18 +08:00
parent 2b13fdab99
commit bc6c907872
3 changed files with 26 additions and 53 deletions
-8
View File
@@ -142,14 +142,6 @@ class DialogueToWorkorder:
"base_url": os.getenv("OPENAI_API_BASE"),
"timeout": httpx.Timeout(600.0)
}
# self.llm_params = llm_params or {
# "temperature": 0.2,
# "top_p":0.95,
# "model": "deepseek-r1",
# "api_key": "25t%Syu6I9yxX2IuTN",
# "base_url": "http://10.1.0.154:8000/v1",
# "timeout": httpx.Timeout(600.0)
# }
self.llm = self._get_llm_instance()
# 创建工单JSON文件目录