UI-TARS-desktop icon indicating copy to clipboard operation
UI-TARS-desktop copied to clipboard

[Bug Report]: 能对话,但是无法调用工具、显示计划

Open EclipseWww opened this issue 9 months ago • 4 comments

Version

1.0.0

Model Provider

Other (please specify in description)

Search Provider

Travily

Problem Description

配置了通义千问,能对话,但是不能调工具。是什么原因呢?Image

Error Logs

{"role":"user","content":"Event stream result history: [end] {"message":"> Agent TARS has finished."}\n\nThe user original input: 帮我画折线图,用 go 并运行\n\n Plan: None\n "},{"role":"user","content":"Please call aware_analysis tool to give me next decision."}],"tools":[{"type":"function","function":{"name":"aware_analysis","description":"Analyze the current environment with user input, and decide the next task status","parameters":{"type":"object","properties":{"step":{"type":"number","description":"Next step number"},"status":{"type":"string","description":"Next task description, a complete sentence tell user what to do next"},"reflection":{"type":"string","description":"Your reflection about current environment"},"plan":{"type":"array","items":{"type":"object","required":["id","title"],"properties":{"id":{"type":"string","description":"Step ID is a sequential number"},"title":{"type":"string","minLength":1,"description":"Clear and concise description of the step"}}}}},"required":["step","status","reflection"]}}}],"requestId":"io52cb"} [2025-03-24T14:43:41.750Z] [INFO] [llmRoute.askLLMTool] Current LLM Config {"provider":"openai","model":"qwq-plus","apiKey":"sk-1b7fe","apiVersion":"","endpoint":"https://dashscope.aliyuncs.com/compatible-mode/v1","baseURL":"https://dashscope.aliyuncs.com/compatible-mode/v1","configName":"openai"} [2025-03-24T14:43:41.750Z] [INFO] [llmRoute.askLLMTool] Current Search Config {"provider":"tavily","apiKey":"tvlyD5Ns"} [2025-03-24T14:43:41.750Z] [INFO] [LLM] Creating LLM with config: {"provider":"openai","model":"qwq-plus","apiKey":"sk-1b7fe","apiVersion":"","endpoint":"https://dashscope.aliyuncs.com/compatible-mode/v1","baseURL":"https://dashscope.aliyuncs.com/compatible-mode/v1","configName":"openai"} [2025-03-24T14:43:41.750Z] [INFO] [ProviderFactory] providerName openai [2025-03-24T14:43:41.750Z] [INFO] [createProviderByName] openai {"provider":"openai","model":"qwq-plus","apiKey":"sk-1b7fe","apiVersion":"","endpoint":"https://dashscope.aliyuncs.com/compatible-mode/v1","baseURL":"https://dashscope.aliyuncs.com/compatible-mode/v1","configName":"openai"} [2025-03-24T14:43:41.750Z] [INFO] [OpenAIProvider] {"apiKey":"sk-1*********************b7fe","baseURL":"https://dashscope.aliyuncs.com/compatible-mode/v1"} [2025-03-24T14:43:41.750Z] [INFO] [llmRoute.askLLMTool] tools ["aware_analysis"] [2025-03-24T14:43:41.878Z] [ERROR] [llmRoute.askLLMTool] Failed to get tool response from LLM: Failed to get tool response from OpenAI: Error: 400 This model only support stream mode, please enable the stream parameter to access the model.

EclipseWww avatar Mar 24 '25 14:03 EclipseWww

@EclipseWww 感谢你的反馈!从你的日志中可以看到,问题应该与模型配置有关,你的模型返回了一个错误信息:

Error: 400 This model only support stream mode, please enable the stream parameter to access the model.

很奇怪,第一次见只支持 stream 的模型,目前 Agent TARS 内部调用模型都是以 non-stream 模式调用的,目前你可以选择切换到一个支持普通模式调用的模型

ulivz avatar Mar 24 '25 14:03 ulivz

Image

Image第一张图是打开成功了,我把网易云的路径加进去允许了,同样的指令第二次就没打开,什么原因

ChowVillain avatar Mar 25 '25 06:03 ChowVillain

Image Image第一张图是打开成功了,我把网易云的路径加进去允许了,同样的指令第二次就没打开,什么原因

你好,请问这里换成什么模型了方便告知下吗?

Yanchi98 avatar Mar 25 '25 09:03 Yanchi98

qwen3模型都是只支持stream模式调用,目前 Agent TARS 内部调用模型都是以 non-stream 模式调用的,这个问题会修复吗

love19861018 avatar Apr 30 '25 09:04 love19861018