fix: wire ai platform run and codex chat

This commit is contained in:
2026-06-13 11:45:03 +08:00
parent af879e4607
commit 9632c1b4a6
7 changed files with 526 additions and 24 deletions
@@ -110,6 +110,8 @@ async def update_provider(
raise HTTPException(status_code=404, detail="提供商不存在")
update_data = data.model_dump(exclude_unset=True)
if update_data.get("api_key") == "":
update_data.pop("api_key")
for key, value in update_data.items():
setattr(provider, key, value)