Skip to main content

Module settings

Module settings 

Source
Expand description

DTOs for /api/v1/settings/* per routers/settings.md §4.

Structs§

ConfigChoice
LLMConfigInputDTO
LLMConfigOutputDTO
SettingsDTO
SettingsPayloadDTO
VectorDBConfigInputDTO
VectorDBConfigOutputDTO

Enums§

LlmProvider
Provider enum for LLMConfigInputDTO::provider. Note that bedrock is not in this list — Python’s GET advertises it but the save Literal rejects it (routers/settings.md §6.4).
VectorDbProvider

Functions§

redact_api_key
Mirrors Python’s (key[0:10] + "*" * (len(key) - 10)) if key else None.
should_persist_api_key
Mirrors Python’s '*****' not in key and len(key.strip()) > 0 guard.