Skip to content

Test the assistant's settings

POST
/api/assistant/settings/test
curl --request POST \
--url https://forge.example.com/api/assistant/settings/test \
--header 'Authorization: Bearer <token>'

Sends one small request to the AI vendor with the stored settings and says whether the vendor accepted them. For administrators.

OK

Media typeapplication/json
object
ok
required
boolean
message
required
string

Example generated

{
"ok": true,
"message": "example"
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}