Skip to content
Skip to Content
Coder Docs

Update chat advisor config

PUT
/api/v2/chats/config/advisor

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

Request body

application/json
  1. body
max_output_tokens?integer
max_uses_per_run?integer

Response Body

No Content

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

curl -X PUT \	"$CODER_URL/api/v2/chats/config/advisor" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "max_output_tokens": 0,  "max_uses_per_run": 0}'
Example Response
Empty