mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 16:44:15 +08:00
feat: 完善 Codex CLI 模型配置与安全隔离
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user