Skip to content
New issue

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

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

Already on GitHub? # to your account

How to Use Third-Party Proxy with MetaGPT? #1685

Open
jingyaolliu opened this issue Feb 8, 2025 · 1 comment
Open

How to Use Third-Party Proxy with MetaGPT? #1685

jingyaolliu opened this issue Feb 8, 2025 · 1 comment

Comments

@jingyaolliu
Copy link

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?

@seehi
Copy link
Contributor

seehi commented Feb 12, 2025

Supported LLMs

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

No branches or pull requests

2 participants