feat: 完善 Codex CLI 模型配置与安全隔离

This commit is contained in:
Lzwaang
2026-07-12 00:31:03 +08:00
parent a7acc5e49d
commit 646d143d58
7 changed files with 289 additions and 74 deletions
+5 -1
View File
@@ -564,7 +564,11 @@ async def ai_test(request: Request):
)
return {"ok": True, "model": current_ai_model() or current_ai_provider(), "response": text[:80]}
except Exception as e:
return {"ok": False, "error": str(e)}
return {
"ok": False,
"error": str(e) or repr(e),
"error_type": type(e).__name__,
}
def _build_prompt(req: BuildRequest) -> str: