feat: replace CONFIG with OPTIONS

This commit is contained in:
莘权 马 2023-08-28 19:13:41 +08:00
parent 7895af2c5a
commit 00f1e18820

View file

@ -11,6 +11,8 @@ import asyncio
from pathlib import Path
import sys
from metagpt.config import CONFIG
sys.path.append(str(Path(__file__).resolve().parent.parent))
import aiofiles
import fire
@ -66,6 +68,7 @@ async def startup(lesson_file: str, investment: float = 3.0, n_round: int = 1, *
3c Match the big letters with the small ones. Then write them on the lines.
"""
CONFIG.set_context(kwargs)
lesson = ""
if lesson_file and Path(lesson_file).exists():