Update Ai Status
const url = 'https://example.com/admin/ai-status/';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/admin/ai-status/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true }'Toggle base AI features on/off at runtime; no provider-routing policy controls (admin only).
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Set to true to enable AI features (chat, generation, semantic search), false to disable.
Example generated
{ "enabled": true}Responses
Section titled “ Responses ”Successful Response
object
Whether an API key is configured. AI features require both ‘enabled’ and ‘configured’.
Whether AI features are enabled for this instance.
Whether at least one record has embeddings stored.
Per-purpose live provider probe results (admin ai-status ?probe=true).
object
Result of one live provider check (chat or embeddings).
Result of one live provider check (chat or embeddings).
Whether pgvector-backed semantic search is enabled.
Example
{ "has_embeddings": false, "semantic_search_enabled": false}Bad request — invalid query parameters or payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks access to this resource
Not found
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request