docs: update require section

This commit is contained in:
hieu-jan 2023-11-23 11:26:31 +09:00
parent 62e8a8253d
commit 536df7de71
2 changed files with 2 additions and 7 deletions

View File

@ -189,7 +189,7 @@ paths:
summary: Create thread summary: Create thread
description: Create a thread description: Create a thread
requestBody: requestBody:
required: true required: false
content: content:
application/json: application/json:
schema: schema:
@ -296,7 +296,7 @@ paths:
example: thread_abc123 example: thread_abc123
description: The ID of the thread to be modified. description: The ID of the thread to be modified.
requestBody: requestBody:
required: true required: false
content: content:
application/json: application/json:
schema: schema:
@ -307,8 +307,6 @@ paths:
description: "Set of messages to update in the thread." description: "Set of messages to update in the thread."
items: items:
$ref: 'specs/threads.yaml#/components/schemas/ThreadMessageObject' $ref: 'specs/threads.yaml#/components/schemas/ThreadMessageObject'
required:
- messages
responses: responses:
"200": "200":
description: Thread modified successfully description: Thread modified successfully

View File

@ -116,9 +116,6 @@ components:
items: items:
type: string type: string
description: "Array of file IDs associated with the message, if any." description: "Array of file IDs associated with the message, if any."
required:
- role
- content
ModifyThreadResponse: ModifyThreadResponse:
type: object type: object