update env load path

This commit is contained in:
Wendong
2025-03-15 22:59:48 +08:00
parent 35aa778b11
commit 0cf3717f57
12 changed files with 71 additions and 29 deletions

View File

@@ -28,9 +28,13 @@ from camel.societies import RolePlaying
from camel.logger import set_log_level
set_log_level(level="DEBUG")
import pathlib
load_dotenv()
base_dir = pathlib.Path(__file__).parent.parent
env_path = base_dir / "owl" / ".env"
load_dotenv(dotenv_path=str(env_path))
set_log_level(level="DEBUG")
def construct_society(question: str) -> RolePlaying: