docs: add thread.assistants

This commit is contained in:
hieu-jan 2023-11-23 11:03:02 +09:00
parent 3162e66e46
commit f5bb2e51a8

View File

@ -363,6 +363,25 @@ paths:
summary: Get Thread.Assistants
description:
- Can achieve this goal by calling Get thread API
parameters:
- in: path
name: thread_id
required: true
schema:
type: string
example: thread_abc123
description: The ID of the thread to retrieve.
responses:
"200":
description: Thread details retrieved successfully
content:
application/json:
schema:
$ref: "specs/threads.yaml#/components/schemas/GetThreadResponse"
x-codeSamples:
- lang: "curl"
source: |
curl {JAN_URL}/v1/threads/{thread_id}/assistants
/threads/{thread_id}/assistants/{assistants_id}:
post:
@ -381,6 +400,25 @@ paths:
summary: List Thread.Messages
description:
- Can achieve this goal by calling Get Thread API
parameters:
- in: path
name: thread_id
required: true
schema:
type: string
example: thread_abc123
description: The ID of the thread to retrieve.
responses:
"200":
description: Thread details retrieved successfully
content:
application/json:
schema:
$ref: "specs/threads.yaml#/components/schemas/GetThreadResponse"
x-codeSamples:
- lang: "curl"
source: |
curl {JAN_URL}/v1/threads/{thread_id}
### MESSAGES
/threads/{thread_id}/messages: