fix: ruff lint + format fixes in tests, ESLint fixes in frontend
This commit is contained in:
@@ -74,10 +74,12 @@ def _parse_ai_response(raw_content: str) -> dict[str, Any]:
|
||||
valid_actions = []
|
||||
for action in actions:
|
||||
if isinstance(action, dict) and "type" in action:
|
||||
valid_actions.append({
|
||||
"type": action["type"],
|
||||
"params": action.get("params", {}),
|
||||
})
|
||||
valid_actions.append(
|
||||
{
|
||||
"type": action["type"],
|
||||
"params": action.get("params", {}),
|
||||
}
|
||||
)
|
||||
|
||||
return {"response": response_text, "actions": valid_actions}
|
||||
|
||||
@@ -172,7 +174,9 @@ async def chat(
|
||||
6. Save the assistant message
|
||||
7. Return response with actions and IDs
|
||||
"""
|
||||
session = await _get_or_create_session(db, user_id, session_id, first_message=message)
|
||||
session = await _get_or_create_session(
|
||||
db, user_id, session_id, first_message=message
|
||||
)
|
||||
|
||||
# Save user message
|
||||
user_msg = CopilotChat(
|
||||
|
||||
Reference in New Issue
Block a user