mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
Update llm_config.py
This commit is contained in:
parent
700f9aae41
commit
76b009513a
1 changed files with 2 additions and 2 deletions
|
|
@ -94,8 +94,8 @@ class LLMConfig(YamlModel):
|
|||
@classmethod
|
||||
def check_llm_key(cls, v):
|
||||
if v in ["", None, "YOUR_API_KEY"]:
|
||||
repo_config_path=(METAGPT_ROOT / "config/config2.yaml")
|
||||
root_config_path=(CONFIG_ROOT / "config2.yaml")
|
||||
repo_config_path = METAGPT_ROOT / "config/config2.yaml"
|
||||
root_config_path = CONFIG_ROOT / "config2.yaml"
|
||||
if root_config_path.exists():
|
||||
raise ValueError(
|
||||
f"Please set your API key in {root_config_path}. If you also set your config in {repo_config_path}, \nthe former will overwrite the latter. This may cause unexpected result.\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue