- updated MAX-TOKEN according to openai document

- minior optimization of code style
- fixed issues `RuntimeError: fail to reduce message length`
This commit is contained in:
Azure Wang 2024-03-11 22:27:59 +08:00
parent 5e02f4c92a
commit 6487ae84b0
4 changed files with 20 additions and 21 deletions

View file

@ -92,7 +92,7 @@ class Config(CLIParams, YamlModel):
"""
default_config_paths: List[Path] = [
METAGPT_ROOT / "config/config2.yaml",
Path.home() / ".metagpt/config2.yaml",
CONFIG_ROOT / "config2.yaml",
]
dicts = [dict(os.environ)]
@ -134,4 +134,3 @@ def merge_dict(dicts: Iterable[Dict]) -> Dict:
return result
config = Config.default()