MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

How to Use Third-Party Proxy with MetaGPT?

Open jingyaolliu opened this issue 10 months ago • 2 comments

I have configured my parameters as follows:

api_type: 'open_llm'  # or azure / ollama / open_llm etc. Check LLMType for more options
model: "gpt-4o-mini"  # or gpt-3.5-turbo-1106 / gpt-4-1106-preview
api_key: "sk-xxx"
base_url: "https://xiaoai.plus/v1"

Of course, I have also tried setting api_type to openai, but I keep encountering the following error:

metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 92.768(s), this was the 6th time calling it. exp: openai.types.completion_usage.CompletionUsage() argument after ** must be a mapping, not NoneType

Is it possible that the issue arises from the use of a third-party proxy?

jingyaolliu avatar Feb 08 '25 10:02 jingyaolliu

Supported LLMs

seehi avatar Feb 12 '25 09:02 seehi

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 15 '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 Apr 01 '25 00:04 github-actions[bot]