magentic-ui icon indicating copy to clipboard operation
magentic-ui copied to clipboard

web_surfer can't get response with "arguments"

Open oras903 opened this issue 3 months ago • 5 comments

the web_surfer's get_llm_response()

Image

return

Image

and I print the following error message

Image

How can i solve this ? Is local llm problem ? my local llm is openai compatible but not openai etc.

oras903 avatar Sep 22 '25 02:09 oras903

Hi @oras903! Have you done any modifications to the websurfer code before getting this error? Do you mind showing the full trace? Does your LLM support tool calling in the OpenAI format ?

husseinmozannar avatar Sep 22 '25 13:09 husseinmozannar

Hi @oras903! Have you done any modifications to the websurfer code before getting this error? Do you mind showing the full trace? Does your LLM support tool calling in the OpenAI format ?

my ai fellow tell me the local llm support tool calling in the openai format

when i use openai llm , the system work well , but when i use local llm , i find web_surfer can't work , so I just add print() and catch exception to trace the output of some step

Image Image Image

oras903 avatar Sep 23 '25 03:09 oras903

which model are you using?

husseinmozannar avatar Sep 23 '25 20:09 husseinmozannar

which model are you using?

the web_surfer

oras903 avatar Sep 24 '25 02:09 oras903

Hi @oras903, I have recently been playing around with local models as well and have seen similar issues. The problem is that local models tend to be smaller and less powerful since they have to fit on your personal computer.

A lot of local small models do not support tool calling or vision capabilities, which will break the web surfer functionalities, which is why you saw that magentic-ui works with OpenAI but with your current model.

Following up on Hussein's question, what model (not agent) are you using? You can find this information in your config.yaml file, it may be something like Qwen, Llama, Deepseek, etc

matheusmaldaner avatar Sep 28 '25 16:09 matheusmaldaner