Spaces:
Running
Running
axeronis commited on
Commit ·
92eacc4
1
Parent(s): 90c8644
fix: Correct toggle-ai request body field name
Browse files- Change 'enable' to 'is_ai_active' in ChatWindow.tsx
- Matches backend API expectation (app/api/leads.py:260)
- Resolves 422 Unprocessable Content error
Related: Backend expects ToggleAIRequest with is_ai_active field
frontend/components/ChatWindow.tsx
CHANGED
|
@@ -93,7 +93,7 @@ export function ChatWindow({ messages, leadId, tenantId, conversationId, lead, c
|
|
| 93 |
'Authorization': `Bearer ${token}`,
|
| 94 |
'Content-Type': 'application/json'
|
| 95 |
},
|
| 96 |
-
body: JSON.stringify({
|
| 97 |
}
|
| 98 |
)
|
| 99 |
|
|
|
|
| 93 |
'Authorization': `Bearer ${token}`,
|
| 94 |
'Content-Type': 'application/json'
|
| 95 |
},
|
| 96 |
+
body: JSON.stringify({ is_ai_active: newIsAIActive })
|
| 97 |
}
|
| 98 |
)
|
| 99 |
|