diff --git a/docs/docs/specs/messages.md b/docs/docs/specs/messages.md index 8758ba542..bb1efb49f 100644 --- a/docs/docs/specs/messages.md +++ b/docs/docs/specs/messages.md @@ -13,7 +13,7 @@ This is currently under development. `Messages` capture a conversation's content. This can include the content from LLM responses and other metadata from [chat completions](/specs/chats). - Users and assistants can send multimedia messages. -- An [OpenAI Message API](https://platform.openai.com/docs/api-reference/messages) compatible endpoint at `localhost:3000/v1/messages`. +- An [OpenAI Message API](https://platform.openai.com/docs/api-reference/messages) compatible endpoint at `localhost:1337/v1/messages`. ## Folder Structure @@ -104,12 +104,8 @@ See [Jan Messages API](https://jan.ai/api-reference#tag/Messages) - Example request ```shell - curl -X POST {JAN_URL}/v1/threads/{thread_id}/messages \ - -H "Content-Type: application/json" \ - -d '{ - "role": "user", - "content": "How does AI work? Explain it in simple terms." - }' + curl {JAN_URL}/v1/threads/{thread_id}/messages/{message_id} \ + -H "Content-Type: application/json" ``` - Example response @@ -259,4 +255,4 @@ See [Jan Messages API](https://jan.ai/api-reference#tag/Messages) "created_at": 1699061776, "message_id": "msg_abc123" } -``` --> +``` --> \ No newline at end of file diff --git a/docs/docs/specs/threads.md b/docs/docs/specs/threads.md index c9d9c9d4c..0097caa66 100644 --- a/docs/docs/specs/threads.md +++ b/docs/docs/specs/threads.md @@ -224,4 +224,4 @@ See [Jan Threads API](https://jan.ai/api-reference#tag/Threads) ### List `Thread.Messages` --> Can achieve this goal by calling `Get Thread` API --> +-> Can achieve this goal by calling `Get Thread` API --> \ No newline at end of file diff --git a/docs/openapi/jan.yaml b/docs/openapi/jan.yaml index fca3d97ba..cf2f8ed25 100644 --- a/docs/openapi/jan.yaml +++ b/docs/openapi/jan.yaml @@ -23,7 +23,7 @@ tags: `Threads` are conversations between an `assistant` and the user: - Users can tweak `model` params and `assistant` behavior within each thread. - Users can import and export threads. - - An [OpenAI Thread API](https://platform.openai.com/docs/api-reference/threads) compatible endpoint at `localhost:3000/v1/threads`. + - An [OpenAI Thread API](https://platform.openai.com/docs/api-reference/threads) compatible endpoint at `localhost:1337/v1/threads`. - name: Assistants description: Configures and utilizes different AI assistants for varied tasks x-tagGroups: