From 184908f62c5a07f76cdc0b1c7d36c4527a8de51a Mon Sep 17 00:00:00 2001 From: angjustinl <96008766+ANGJustinl@users.noreply.github.com> Date: Fri, 7 Mar 2025 13:26:49 +0800 Subject: [PATCH] fix: Load .env file before import. --- owl/run.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/owl/run.py b/owl/run.py index 701c885..9b17a1f 100644 --- a/owl/run.py +++ b/owl/run.py @@ -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: