Update
DevPlace CI / test (push) Failing after 1h42m39s

This commit is contained in:
2026-08-20 00:38:07 +02:00
parent 516219513a
commit 2f26dbb1e7
6 changed files with 92 additions and 7 deletions
+3 -1
View File
@@ -189,7 +189,9 @@ async def clippy_proxy(request: Request):
"Content-Type": "application/json",
"X-App-Reference": "devplace-devii-v-1-0-0",
}
if cfg.get("devii_ai_key"):
if user.get("api_key"):
headers["Authorization"] = f"Bearer {user['api_key']}"
elif cfg.get("devii_ai_key"):
headers["Authorization"] = f"Bearer {cfg['devii_ai_key']}"
async with stealth.stealth_async_client(timeout=45.0) as client:
upstream = await client.post(cfg["devii_ai_url"], content=body, headers=headers)