The server's AI providers
The server runs no model: its LLM (AITODO_SERVER_LLM_PROVIDER) and its embedding (AITODO_SERVER_EMBED_URL) call remote APIs.
Each has a place: server (it leaves the company) or infrastructure (the company's own). A bad setting stops the server at startup.
Details9 items
- One switch: the project's
llmEnabled(tkt project llm enable) covers both parts of the server AI, the LLM and the embedding; it can be switched on when either is set up on the server. - LLM:
AITODO_SERVER_LLM_PROVIDER=anthropic(default,ANTHROPIC_API_KEY,server),bedrock,vertex,foundry(Claude in the company's cloud,infrastructure) oropenai(an OpenAI-compatible endpoint: vLLM, Ollama, Azure OpenAI). - Embedding:
AITODO_SERVER_EMBED_URL(an OpenAI-compatible/embeddingsbase URL) andAITODO_SERVER_EMBED_MODEL; thentkt searchon a server-hosted store is hybrid, and its--jsonembeddingnames the provider and the place. Measured choice: Azure OpenAItext-embedding-3-large(URLhttps://<resource>.openai.azure.com/openai/v1, the model is the deployment's name);-3-smallis weak in Hungarian. - Claude in the company's cloud:
bedrock:AITODO_SERVER_LLM_REGION, the IAM role orAWS_BEARER_TOKEN_BEDROCK, the model with theanthropic.prefix (defaultanthropic.claude-opus-5-5);vertex:AITODO_SERVER_LLM_REGION,AITODO_SERVER_LLM_GCP_PROJECT, the workload identity;foundry:AITODO_SERVER_LLM_FOUNDRY_RESOURCE,ANTHROPIC_FOUNDRY_API_KEY. Structured outputs and effort work on all three; the fallback model after a refusal is the Anthropic API's only. The server image carries theaitodo[server-cloud]extra. - OpenAI-compatible LLM:
AITODO_SERVER_LLM_URL,AITODO_SERVER_LLM_MODEL(required),AITODO_SERVER_LLM_KEY(if it needs one); the server checks the answer against the schema, asks once more, thenERR_LLM_UPSTREAM. Its place isserverby default (it leaves the company);AITODO_SERVER_LLM_PLACE=infrastructurewhen the endpoint is the company's own. - Embedding:
AITODO_SERVER_EMBED_KEY(if it needs one),AITODO_SERVER_EMBED_PLACE=server(default) orinfrastructure. The vector cache lives next to the store, keyed by project,server:<model>and text: a new model re-embeds, never mixes. - TLS: https; plain http only to this machine, or with
AITODO_SERVER_ALLOW_HTTP=1. Keys only from the environment or the platform's identity; never in a reply, a log or a run's environment. - Embed API for a repo store's client (read +
llm, the project's AI on):GET /v1/projects/{p}/embedgives{id, model, place};POST /v1/projects/{p}/embed{texts}(at most 64 texts, the body withinAITODO_SERVER_LLM_MAX_BYTES, else 413ERR_PAYLOAD_TOO_LARGEbefore any call) gives{id, place, vectors}. The server keeps and logs no text and no vector; the call counts toward the project's caps and limits (429ERR_LLM_QUOTA,ERR_RATE_LIMITED). Not set or AI off: 503ERR_LLM_NOT_CONFIGURED; the endpoint's failure: 502ERR_LLM_UPSTREAM. tkt project llm usage --jsonnamesproviderandplace; the answer cache's key holds the provider.