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

@@ -20,7 +20,6 @@
from dotenv import load_dotenv
from camel.models import ModelFactory
from camel.toolkits import (
ExcelToolkit,
@@ -29,17 +28,18 @@ from camel.toolkits import (
CodeExecutionToolkit,
)
from camel.types import ModelPlatformType, ModelType
from camel.societies import RolePlaying
from camel.logger import set_log_level
from owl.utils import run_society
from camel.societies import RolePlaying
from camel.logger import set_log_level
import pathlib
set_log_level(level="DEBUG")
load_dotenv()
base_dir = pathlib.Path(__file__).parent.parent
env_path = base_dir / "owl" / ".env"
load_dotenv(dotenv_path=str(env_path))
def construct_society(question: str) -> RolePlaying: