Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(EAI-566): Support creating new conversation when add message when conversationId = "null" #531

Merged
merged 25 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/docs/server/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ paths:
post:
operationId: addMessage
summary: Add message to the conversation
description: Add a message to the conversation and get a response back from chatbot.
description: |
Add a message to the conversation and get a response back from chatbot.

You can configure your server to create new conversations
when you set the conversation ID to `null`.
If you do this, the server creates a new conversation
and returns the conversation ID in the response's `metadata.conversationId` field.
parameters:
- $ref: "#/components/parameters/conversationId"
- name: stream
Expand Down Expand Up @@ -218,13 +224,17 @@ components:
type: object
required:
- id
- conversationId
- role
- content
- createdAt
properties:
id:
type: string
description: The unique identifier for a message.
conversationId:
type: string
description: The unique identifier for a conversation.
role:
type: string
enum: [user, assistant]
Expand Down
Loading