Smoke-test a model through the gateway
Test
Smoke-test a model through the gateway
Calls the gateway with a minimal request to verify a model is reachable. Used by the platform Models admin page (Test button).
type: "embeddings"→ callsOpenAI.embeddingswithinput: "Salut"and returns{ ok, dimensions, response }.type: "completions"(default) → callsOpenAI.chat-completionwith a single-turn user message and aget_weathertool definition, returns{ ok, response }.
On error, the call is wrapped in a try/catch and returns
{ ok: false, response: <error> }.
POST
Smoke-test a model through the gateway
Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Body
application/json