Organizations
Get default models
Changed onReturns the model new desktop chats start with on the OpenCode v2 engine: the organization default (null for none) and each team's override (null when the team uses the organization default), teams by name. A member on several teams whose overrides differ starts on the organization default; conflictingMemberCount counts them per team. Members can still change the model in each chat. Requires the View OpenWork Models settings permission and the Organization default model feature.
get/v1/org/default-model
Request
- Base URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Response
Default models returned.
Default Model Settings required
everyone, Default Model Choice nullable required
teams, Default Model Team[] required
canEdit, boolean required
Changes
- info
endpoint added
- info