feat: widgets and ai chat

This commit is contained in:
Rotimi Best
2026-04-27 11:40:38 +01:00
parent ae1801f85f
commit 5717dd8004
391 changed files with 28177 additions and 22467 deletions
@@ -102,13 +102,18 @@ class ApiClient {
}
}
if (isFormData) {
// Let the browser set the multipart boundary, but keep auth/org headers.
headers.delete('Content-Type');
}
// Create abort controller for timeout
const timeoutController = new AbortController();
const timeoutId = setTimeout(() => timeoutController.abort(), timeout);
const requestInit: RequestInit = {
...fetchConfig,
headers: isFormData ? undefined : headers,
headers,
body: requestBody,
signal: mergeAbortSignals(fetchConfig.signal, timeoutController.signal)
};