Fixed all ruff issues

This commit is contained in:
2025-12-07 05:59:53 +01:00
parent a21121d025
commit 0c48640412
13 changed files with 29 additions and 30 deletions
+2 -2
View File
@@ -178,10 +178,10 @@ async def chat_completions(chat_request: ChatCompletionRequest):
answer = agent.step(user_input)
except LLMAPIError as e:
logger.error(f"LLM API error: {e}")
raise HTTPException(status_code=502, detail=f"LLM API error: {e}")
raise HTTPException(status_code=502, detail=f"LLM API error: {e}") from e
except Exception as e:
logger.error(f"Agent error: {e}", exc_info=True)
raise HTTPException(status_code=500, detail="Internal agent error")
raise HTTPException(status_code=500, detail="Internal agent error") from e
return JSONResponse(
{