docs: add thread.assistants
This commit is contained in:
parent
3162e66e46
commit
f5bb2e51a8
@ -363,6 +363,25 @@ paths:
|
|||||||
summary: Get Thread.Assistants
|
summary: Get Thread.Assistants
|
||||||
description:
|
description:
|
||||||
- Can achieve this goal by calling Get thread API
|
- 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}:
|
/threads/{thread_id}/assistants/{assistants_id}:
|
||||||
post:
|
post:
|
||||||
@ -381,6 +400,25 @@ paths:
|
|||||||
summary: List Thread.Messages
|
summary: List Thread.Messages
|
||||||
description:
|
description:
|
||||||
- Can achieve this goal by calling Get Thread API
|
- 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
|
### MESSAGES
|
||||||
/threads/{thread_id}/messages:
|
/threads/{thread_id}/messages:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user