Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baidu_Qianfan needs base_url in Config #1681

Open
peterxia-chn opened this issue Jan 31, 2025 · 1 comment
Open

Baidu_Qianfan needs base_url in Config #1681

peterxia-chn opened this issue Jan 31, 2025 · 1 comment

Comments

@peterxia-chn
Copy link

peterxia-chn commented Jan 31, 2025

Bug description
I have read document of Config,[https://docs.deepwisdom.ai/main/zh/guide/get_started/configuration/llm_api_configuration.html]

which said:

Image

If I set these config parameters as same as above, request or url will use default base url:

Image

Bug solved method
1.
Image

May be extract to a abstract function or other way.

  1. If I add base_url in Config2.yaml, that will be right. But add the description into document.

Environment information

  • LLM type and model name:
  • System version: Ubuntu 24.04
  • Python version: 3.11
  • MetaGPT version or branch: git main branch
  • packages version:
  • installation method:

Screenshots or logs

@Terrdi
Copy link

Terrdi commented Feb 6, 2025

I configured base_url such as

base_url: "https://qianfan.baidubce.com/v2"

then it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants