QwenLM / Qwen-Agent

Agent framework and applications built upon Qwen2, featuring Function Calling, Code Interpreter, RAG, and Chrome extension.

Home Page:https://pypi.org/project/qwen-agent/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

怎么使用ollama部署Qwen-Agent呢

Duktig-zhc opened this issue · comments

commented

目前我已经把Qwen-Agent给出的示例代码里的lim_cfg,并且使用了llm = get_chat_model(llm_cfg)
llm_cfg = { 'model': 'qwen:0.5b', 'model_server': 'http://127.0.0.1:11434/v1', 'api_key': 'ollama', }

但是依旧会报错提示
qwen_agent.llm.base.ModelServiceError: Error code: 502
请问是什么问题呢

502 bad gateway 这个报错看起来是防火墙或代理阻断了,导致无法访问。

commented

502 bad gateway 这个报错看起来是防火墙或代理阻断了,导致无法访问。

谢谢您 问题解决了