session
Switch session model
Changed onSwitch the model used by subsequent provider turns.
post/api/session/{sessionID}/model
Request
- Base URLhttps://opencode.ai (the document declares no server; this is the origin it was published from)
- URLhttps://opencode.ai/api/session/{sessionID}/model
- Authnone required
Path parameters
sessionIDstring required
Request body
Response
<No Content>
Changes
- breaking
the response's body type changed from no type to
objectfor status - info
removed from the response body
anyOflist for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking