This commit is contained in:
2025-02-07 10:21:16 +08:00
parent 2c9b1bba3a
commit 0ef44b002e
18 changed files with 29943 additions and 111 deletions

View File

@@ -5,8 +5,8 @@ from autogen_ext.code_executors.docker import DockerCommandLineCodeExecutor
# Define your API keys and configurations
OPENAI_API_KEY = "sk-4aJj5ygdQ9rw6lS6920712Ef9bB848439522E72318439eCd"
OPENAI_BASE_URL = "http://8.218.238.241:17935/v1"
# OPENAI_BASE_URL = "https://vip.apiyi.com/v1"
# OPENAI_BASE_URL = "http://154.44.26.195:17935/v1"
OPENAI_BASE_URL = "https://vip.apiyi.com/v1"
# MODEL = "chatgpt-4o-latest"
MODEL = "gpt-4o-2024-11-20"
@@ -21,4 +21,4 @@ CACHE = None # None 就是关闭 41是默认值开启
WORK_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), ".coding")
if not os.path.exists(WORK_DIR):
os.mkdir(WORK_DIR)
code_executor = DockerCommandLineCodeExecutor(bind_dir=Path(WORK_DIR))
# code_executor = DockerCommandLineCodeExecutor(bind_dir=Path(WORK_DIR))