修改名称

This commit is contained in:
2025-03-02 15:06:35 +08:00
parent 24882543a9
commit 329f5c8310
126 changed files with 126 additions and 11322 deletions

View File

@@ -1,16 +1,17 @@
from pathlib import Path
import os
from autogen_ext.code_executors.docker import DockerCommandLineCodeExecutor
# Define your API keys and configurations
# OPENAI_API_KEY = "sk-QQq3pi7xjy24YuY207Cc9fD9Af51479fA2B584058a7593Fa"
OPENAI_API_KEY = "sk-urFGAQRThR6pysea0aC93bD27fA34bA69811A9254aAaD8B2"
# OPENAI_API_KEY = "sk-FTmEt110USDrY7py99Af4a3eAbF6432f97Aa1103Ba9cCdE8"
OPENAI_BASE_URL = "http://8.218.238.241:17935/v1"
# OPENAI_BASE_URL = "https://pro.aiskt.com/v1"
OPENAI_API_KEY = "sk-4aJj5ygdQ9rw6lS6920712Ef9bB848439522E72318439eCd"
# OPENAI_BASE_URL = "http://154.44.26.195:17935/v1"
OPENAI_BASE_URL = "http://159.75.70.95:17935/v1"
# OPENAI_BASE_URL = "https://vip.apiyi.com/v1"
MODEL = "gpt-4o"
# MODEL = "gpt-4o-2024-08-06"
# MODEL = "chatgpt-4o-latest"
MODEL = "gpt-4o-2024-11-20"
# MODEL = "deepseek-chat"
# config_list = [{"model": MODEL, "api_key": OPENAI_API_KEY, "base_url": OPENAI_BASE_URL, "temperature": 0}]
config_list = [{"model": MODEL, "api_key": OPENAI_API_KEY, "base_url": OPENAI_BASE_URL}]
@@ -18,7 +19,7 @@ SILENT = True # 关闭嵌套智能体的输出
STREAM = True # stream on console
CACHE = None # None 就是关闭 41是默认值开启
current_path = os.path.dirname(os.path.abspath(__file__))
WORK_DIR = Path(current_path, ".coding")
WORK_DIR.mkdir(exist_ok=True)
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))