mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-01 03:46:23 +02:00
feat: +metagpt llm
This commit is contained in:
parent
f65b959d52
commit
39e2e1d8a0
1 changed files with 2 additions and 2 deletions
|
|
@ -25,9 +25,9 @@ class MetaGPTLLMAPI(OpenAIGPTAPI):
|
|||
|
||||
def __init_openai(self, config):
|
||||
openai.api_key = CONFIG.METAGPT_API_KEY
|
||||
if config.openai_api_base:
|
||||
if CONFIG.METAGPT_API_BASE:
|
||||
openai.api_base = CONFIG.METAGPT_API_BASE
|
||||
if config.openai_api_type:
|
||||
if CONFIG.METAGPT_API_TYPE:
|
||||
openai.api_type = CONFIG.METAGPT_API_TYPE
|
||||
openai.api_version = CONFIG.METAGPT_API_VERSION
|
||||
self.rpm = int(config.get("RPM", 10))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue