Save a default model per user, set from Settings

This commit is contained in:
Ian Gulliver
2026-10-18 00:57:51 -07:00
parent 17f09ecb7c
commit 10c6c84f74
10 changed files with 395 additions and 257 deletions
+25 -1
View File
@@ -44,6 +44,23 @@ paths:
schema: { $ref: "#/components/schemas/User" }
"400": { $ref: "#/components/responses/Error" }
/api/me/default-model:
put:
operationId: updateDefaultModel
description: Sets the model the calling user's app starts new tasks on.
requestBody:
required: true
content:
application/json:
schema: { $ref: "#/components/schemas/DefaultModel" }
responses:
"200":
description: The updated user.
content:
application/json:
schema: { $ref: "#/components/schemas/User" }
"400": { $ref: "#/components/responses/Error" }
/api/me/lead/sessions:
get:
operationId: listLeadSessions
@@ -1072,13 +1089,20 @@ components:
User:
type: object
required: [login, display_name, git_name, git_email, notification_prefs]
required: [login, display_name, git_name, git_email, notification_prefs, default_model]
properties:
login: { type: string }
display_name: { type: string }
git_name: { type: string }
git_email: { type: string }
notification_prefs: { $ref: "#/components/schemas/NotificationPrefs" }
default_model: { type: string, description: The model the app starts new tasks on. }
DefaultModel:
type: object
required: [model]
properties:
model: { type: string }
NotificationPrefs:
type: object