Skip to content
Skip to Content
Coder Docs

Get chat advisor config

GET
/api/v2/chats/config/advisor

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
enabled?boolean

Enabled is always true and cannot be changed.

max_output_tokens?integer

MaxOutputTokens caps the advisor model response tokens. 0 means use the runtime default.

max_uses_per_run?integer

MaxUsesPerRun caps how many times the advisor can be invoked per chat turn. 0 means unlimited.

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/chats/config/advisor" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "enabled": true,  "max_output_tokens": 0,  "max_uses_per_run": 0}