mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
update config
This commit is contained in:
parent
9bd900452c
commit
18a195a367
1 changed files with 1 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ class Config(metaclass=Singleton):
|
|||
(self.gemini_api_key, LLMProviderEnum.GEMINI), # reuse logic. but not a key
|
||||
]:
|
||||
if self._is_valid_llm_key(k):
|
||||
logger.info(f"Use LLMProvider: {v.value}")
|
||||
# logger.debug(f"Use LLMProvider: {v.value}")
|
||||
if v == LLMProviderEnum.GEMINI and not require_python_version(req_version=(3, 10)):
|
||||
warnings.warn("Use Gemini requires Python >= 3.10")
|
||||
if self.openai_api_key and self.openai_api_model:
|
||||
|
|
@ -94,7 +94,6 @@ class Config(metaclass=Singleton):
|
|||
return k and k != "YOUR_API_KEY"
|
||||
|
||||
def _update(self):
|
||||
# logger.info("Config loading done.")
|
||||
self.global_proxy = self._get("GLOBAL_PROXY")
|
||||
|
||||
self.openai_api_key = self._get("OPENAI_API_KEY")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue