mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 17:26:22 +02:00
add other llm for LLMProviderRegistry
This commit is contained in:
parent
e5a7fdfe3b
commit
f3eb9f638e
3 changed files with 23 additions and 12 deletions
|
|
@ -79,7 +79,7 @@ class Config(metaclass=Singleton):
|
|||
(self.gemini_api_key, LLMProviderEnum.GEMINI), # reuse logic. but not a key
|
||||
]:
|
||||
if self._is_valid_llm_key(k):
|
||||
if self.openai_api_model:
|
||||
if self.openai_api_key and self.openai_api_model:
|
||||
logger.info(f"OpenAI API Model: {self.openai_api_model}")
|
||||
return v
|
||||
raise NotConfiguredException("You should config a LLM configuration first")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue