mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 17:56:23 +02:00
set OPENAI_API_BASE when using proxy
This commit is contained in:
parent
c1c73a2357
commit
848eb37341
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ class Config(metaclass=Singleton):
|
|||
openai_proxy = self._get("OPENAI_PROXY") or self.global_proxy
|
||||
if openai_proxy:
|
||||
openai.proxy = openai_proxy
|
||||
openai.api_base = self.openai_api_base
|
||||
self.openai_api_type = self._get("OPENAI_API_TYPE")
|
||||
self.openai_api_version = self._get("OPENAI_API_VERSION")
|
||||
self.openai_api_rpm = self._get("RPM", 3)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue