Skip to content
getgeolens.com

Update Ai Status

PATCH
/admin/ai-status/
curl --request PATCH \
--url https://example.com/api/admin/ai-status/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "enabled": true }'

Toggle AI features on/off at runtime (admin only).

Media type application/json
AIStatusUpdate
object
enabled
required
Enabled

Set to true to enable AI features (chat, generation, semantic search), false to disable.

boolean
Example generated
{
"enabled": true
}

Successful Response

Media type application/json
AIStatusResponse
object
provider
required
Any of:
string
model
required
Any of:
string
enabled
required
Enabled

Whether AI features are enabled for this instance.

boolean
configured
required
Configured

Whether an API key is configured. AI features require both ‘enabled’ and ‘configured’.

boolean
semantic_search_enabled
Semantic Search Enabled

Whether pgvector-backed semantic search is enabled.

boolean
has_embeddings
Has Embeddings

Whether at least one record has embeddings stored.

boolean
Example
{
"semantic_search_enabled": false,
"has_embeddings": false
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}