configure reviewer
This commit is contained in:
+27
-1
@@ -61,6 +61,23 @@ paths:
|
||||
schema: { $ref: "#/components/schemas/User" }
|
||||
"400": { $ref: "#/components/responses/Error" }
|
||||
|
||||
/api/me/review-models:
|
||||
put:
|
||||
operationId: updateReviewModels
|
||||
description: Sets the models that review the calling user's tasks.
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema: { $ref: "#/components/schemas/ReviewModels" }
|
||||
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
|
||||
@@ -1122,7 +1139,7 @@ components:
|
||||
|
||||
User:
|
||||
type: object
|
||||
required: [login, display_name, git_name, git_email, notification_prefs, default_model]
|
||||
required: [login, display_name, git_name, git_email, notification_prefs, default_model, review_model, second_review_model]
|
||||
properties:
|
||||
login: { type: string }
|
||||
display_name: { type: string }
|
||||
@@ -1130,6 +1147,8 @@ components:
|
||||
git_email: { type: string }
|
||||
notification_prefs: { $ref: "#/components/schemas/NotificationPrefs" }
|
||||
default_model: { type: string, description: The model the app starts new tasks on. }
|
||||
review_model: { type: string, description: The model that reviews this user's tasks, unless it wrote the work under review. }
|
||||
second_review_model: { type: string, description: The model that reviews this user's tasks when review_model wrote the work under review. }
|
||||
|
||||
DefaultModel:
|
||||
type: object
|
||||
@@ -1137,6 +1156,13 @@ components:
|
||||
properties:
|
||||
model: { type: string }
|
||||
|
||||
ReviewModels:
|
||||
type: object
|
||||
required: [review_model, second_review_model]
|
||||
properties:
|
||||
review_model: { type: string }
|
||||
second_review_model: { type: string }
|
||||
|
||||
NotificationPrefs:
|
||||
type: object
|
||||
description: Which new questions, finished turns, errors and rate limits notify this user in their open byre pages.
|
||||
|
||||
Reference in New Issue
Block a user