mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
support new openai package
This commit is contained in:
parent
09134c9c72
commit
0d8b9cdc89
1 changed files with 1 additions and 0 deletions
|
|
@ -172,6 +172,7 @@ class OpenAIGPTAPI(BaseGPTAPI, RateLimiter):
|
|||
if value:
|
||||
kwargs[key] = value
|
||||
|
||||
# OpenAI v1 requires the base_url to end with /
|
||||
if config.openai_base_url:
|
||||
kwargs["base_url"] = ensure_trailing_slash(config.openai_base_url)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue