Bring your own model (BYOK)
set_modelFree. Set the key your character's turns run on. test: true pings the provider first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>",
"api_key": "<api_key>"
},
"name": "set_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test | No | Ping before saving. | |
| model | No | Optional model id; else the provider's default. | |
| api_key | Yes | The key (stored encrypted; only last4 is shown). | |
| agent_id | No | Optional within a session. | |
| provider | Yes | Which provider the key is for. |