fix: Load .env file before import.

This commit is contained in:
angjustinl
2025-03-07 13:26:49 +08:00
parent 4b2d01b967
commit 184908f62c

View File

@@ -1,10 +1,13 @@
from dotenv import load_dotenv
load_dotenv()
from camel.models import ModelFactory
from camel.toolkits import *
from camel.types import ModelPlatformType, ModelType
from camel.configs import ChatGPTConfig
from typing import List, Dict
from dotenv import load_dotenv
from retry import retry
from loguru import logger
@@ -12,7 +15,6 @@ from utils import OwlRolePlaying, process_tools, run_society
import os
load_dotenv()
def construct_society(question: str) -> OwlRolePlaying: