21 lines
623 B
Python
21 lines
623 B
Python
# --- API Key Configuration ---
|
|
# GLM API Key
|
|
GLM_API_KEY = "xxxxxxx"
|
|
# Qwen API Key
|
|
QWEN_API_KEY = "xxxxxxx"
|
|
|
|
# --- Upstream Service URLs ---
|
|
# MThreads Playground API
|
|
MTHREADS_UPSTREAM_URL = "https://qwen2dot5-14b-instruct-1m.playground.mthreads.com/call/generate_response"
|
|
# Qwen DashScope API
|
|
QWEN_UPSTREAM_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"
|
|
# GLM BigModel API
|
|
GLM_UPSTREAM_URL = "https://open.bigmodel.cn/api/paas/v4/chat/completions"
|
|
|
|
# --- Default Listener Configuration ---
|
|
DEFAULT_LISTEN_HOST = "0.0.0.0"
|
|
DEFAULT_LISTEN_PORT = 3060
|
|
|
|
# --- Global Variables ---
|
|
DEBUG = False
|