From 536df7de71f6e27ac2af8b5f135481f9d7fd9a85 Mon Sep 17 00:00:00 2001 From: hieu-jan <150573299+hieu-jan@users.noreply.github.com> Date: Thu, 23 Nov 2023 11:26:31 +0900 Subject: [PATCH] docs: update require section --- docs/openapi/jan.yaml | 6 ++---- docs/openapi/specs/threads.yaml | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/openapi/jan.yaml b/docs/openapi/jan.yaml index cc452ffe3..fca3d97ba 100644 --- a/docs/openapi/jan.yaml +++ b/docs/openapi/jan.yaml @@ -189,7 +189,7 @@ paths: summary: Create thread description: Create a thread requestBody: - required: true + required: false content: application/json: schema: @@ -296,7 +296,7 @@ paths: example: thread_abc123 description: The ID of the thread to be modified. requestBody: - required: true + required: false content: application/json: schema: @@ -307,8 +307,6 @@ paths: description: "Set of messages to update in the thread." items: $ref: 'specs/threads.yaml#/components/schemas/ThreadMessageObject' - required: - - messages responses: "200": description: Thread modified successfully diff --git a/docs/openapi/specs/threads.yaml b/docs/openapi/specs/threads.yaml index bd1397e2d..317447f90 100644 --- a/docs/openapi/specs/threads.yaml +++ b/docs/openapi/specs/threads.yaml @@ -116,9 +116,6 @@ components: items: type: string description: "Array of file IDs associated with the message, if any." - required: - - role - - content ModifyThreadResponse: type: object