fix: 清除错误默认模型与端口硬编码,文档机器路径占位符化
This commit is contained in:
+3
-2
@@ -4,8 +4,9 @@ import httpx
|
||||
|
||||
|
||||
class LLMClient:
|
||||
def __init__(self, model="gpt-4o-mini", timeout=15, cache_dir=".cache/llm"):
|
||||
self.model = model
|
||||
def __init__(self, model=None, timeout=15, cache_dir=".cache/llm"):
|
||||
# 模型解析链: 显式实参 → LLM_MODEL 环境变量 → 项目默认(与 config 层一致)
|
||||
self.model = model or os.environ.get("LLM_MODEL", "deepseek-v4-flash")
|
||||
self.timeout = timeout
|
||||
self.dir = Path(cache_dir)
|
||||
self.dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user