Save a default model per user, set from Settings
This commit is contained in:
+25
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user