紧急修复:移除所有硬编码API Key,改为环境变量 ASTRON_KEY

This commit is contained in:
shuiyu1123 committed 2026-06-13 04:04:02 +00:00
1 parent 7f27812efd
commit eb1d62f85c
5 files changed
+974 -1

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ import json, requests, time, os, threading
from concurrent.futures import ThreadPoolExecutor, as_completed
ASTRON_URL = "https://maas-coding-api.cn-huabei-1.xf-yun.com/v2/chat/completions"
ASTRON_KEY = "658beba1beb0c911ed00672019bbf7e5:MjNmYWRkMWUyZjAxYTM3ZGE2ODI1YzFh"
ASTRON_KEY = os.environ.get("ASTRON_KEY", "")
ASTRON_MODEL = "astron-code-latest"
SYSTEM_PROMPT = """你是一个名叫小狸的8岁中国小女孩。