Saltar al contenido principal

Settings - OpenAI Connections

Bring-your-own AI provider configuration.

📄️ Save the whole BYOAI configuration (fast, smart and embeddings)

Validate and save the three blocks a BYOAI tenant must provide: the fast chat model, the smart chat model and the embeddings endpoint. All three are tested before anything is written, and they are written together — a partial BYOAI would break every AI SAST scan. The embedding model id is optional (platform default) and must serve the index's vector width; its endpoint and key come from the request. Returns 400 on any failed test.

📄️ Test a BYOAI block from the form without saving

Dry-run the connectivity probe for one BYOAI block — 'validation' (fast), 'remediator' (smart) or 'embedding' — against the request body (the current form values), without persisting anything. Mirrors PUT /connections/byoai: every connection is the same generic OpenAI-compatible client, an empty api_key reuses the stored one, and an omitted embeddings model falls back to the platform default. Returns 400 on a failed probe. Requires the ai_byoai plan feature.