From 3162e66e466c7ee7ad8a7c6b22a6411caed70416 Mon Sep 17 00:00:00 2001 From: hieu-jan <150573299+hieu-jan@users.noreply.github.com> Date: Thu, 23 Nov 2023 10:56:12 +0900 Subject: [PATCH] docs: complete thread --- docs/openapi/jan.yaml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/openapi/jan.yaml b/docs/openapi/jan.yaml index f426f95d3..64166a63c 100644 --- a/docs/openapi/jan.yaml +++ b/docs/openapi/jan.yaml @@ -327,6 +327,7 @@ paths: "content": "How does AI work? Explain it in simple terms." }] }' + delete: operationId: deleteThread tags: @@ -352,7 +353,35 @@ paths: - lang: "curl" source: | curl -X DELETE {JAN_URL}/v1/threads/{thread_id} - + + + /threads/{thread_id}/assistants: + get: + operationId: getThreadAssistants + tags: + - Threads + summary: Get Thread.Assistants + description: + - Can achieve this goal by calling Get thread API + + /threads/{thread_id}/assistants/{assistants_id}: + post: + operationId: postThreadAssistants + tags: + - Threads + summary: Modify Thread.Assistants + description: + - Can achieve this goal by calling Modify Assistant API with thread.assistant[] + + /threads/{thread_id}/: + get: + operationId: listThreadMessage + tags: + - Threads + summary: List Thread.Messages + description: + - Can achieve this goal by calling Get Thread API + ### MESSAGES /threads/{thread_id}/messages: get: