Agents
Validate Llm Connection
Changed onValidate an LLM provider API key and model availability.
Two callable shapes:
- Inline - raw apiKey + optional baseUrl supplied directly, for example to test a new key before saving it.
- Saved connection - savedConnectionId references a saved LLM connection; Streamkap loads its apiKey, baseUrl and provider server-side, so the stored secret never leaves the server.
Calls the provider's free list-models endpoint to check key validity and model existence. apiKey is required unless the provider is ollama or savedConnectionId is set (422 otherwise). 404 if savedConnectionId does not match a saved connection. Per-tenant rate limit: 30 req/min -> 429 with Retry-After.
post/agents/validate-llm
Request
- Base URLhttps://api.streamkap.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
object required
Changes
- info
endpoint added
- info