MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

Baidu_Qianfan needs base_url in Config

Open peterxia-chn opened this issue 10 months ago • 2 comments

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

peterxia-chn avatar Jan 31 '25 03:01 peterxia-chn

I configured base_url such as

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

then it works.

Terrdi avatar Feb 06 '25 07:02 Terrdi

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

github-actions[bot] avatar Mar 09 '25 00:03 github-actions[bot]

This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.

github-actions[bot] avatar Mar 23 '25 00:03 github-actions[bot]