From f5bb2e51a8a61a4de557903c7858a5654153d26e Mon Sep 17 00:00:00 2001 From: hieu-jan <150573299+hieu-jan@users.noreply.github.com> Date: Thu, 23 Nov 2023 11:03:02 +0900 Subject: [PATCH] docs: add thread.assistants --- docs/openapi/jan.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/docs/openapi/jan.yaml b/docs/openapi/jan.yaml index 64166a63c..1c7ef714c 100644 --- a/docs/openapi/jan.yaml +++ b/docs/openapi/jan.yaml @@ -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: