Download OpenAPI specification:Download
Send chat message
Conversationid (string) or Conversationid (null) (Conversationid) Unique conversation id. If not provided, new conversation will be generated. | |
required | object (MessageInputWithoutMessageId) |
continueGenerate | boolean (Continuegenerate) Default: false |
{- "conversationId": "string",
- "message": {
- "content": [
- {
- "contentType": "text",
- "mediaType": "string",
- "fileName": "string",
- "body": "string"
}
], - "model": "claude-instant-v1"
}, - "continueGenerate": false
}
{- "conversationId": "string",
- "messageId": "string"
}
Get a conversation history. If the conversation does not exist, it will return 404.
conversation_id required | string (Conversation Id) |
{- "id": "string",
- "title": "string",
- "createTime": 0,
- "messageMap": {
- "property1": {
- "role": "string",
- "content": [
- {
- "contentType": "text",
- "mediaType": "string",
- "fileName": "string",
- "body": "string"
}
], - "model": "claude-instant-v1",
- "children": [
- "string"
], - "feedback": {
- "thumbsUp": true,
- "category": "string",
- "comment": "string"
}, - "usedChunks": [
- {
- "content": "string",
- "contentType": "string",
- "source": "string",
- "rank": 0
}
], - "parent": "string",
- "thinkingLog": [
- {
- "role": "string",
- "content": [
- {
- "contentType": "text",
- "body": "string"
}
]
}
]
}, - "property2": {
- "role": "string",
- "content": [
- {
- "contentType": "text",
- "mediaType": "string",
- "fileName": "string",
- "body": "string"
}
], - "model": "claude-instant-v1",
- "children": [
- "string"
], - "feedback": {
- "thumbsUp": true,
- "category": "string",
- "comment": "string"
}, - "usedChunks": [
- {
- "content": "string",
- "contentType": "string",
- "source": "string",
- "rank": 0
}
], - "parent": "string",
- "thinkingLog": [
- {
- "role": "string",
- "content": [
- {
- "contentType": "text",
- "body": "string"
}
]
}
]
}
}, - "lastMessageId": "string",
- "botId": "string",
- "shouldContinue": true
}
Get specified message in a conversation. If the message does not exist, it will return 404.
conversation_id required | string (Conversation Id) |
message_id required | string (Message Id) |
{- "conversationId": "string",
- "message": {
- "role": "string",
- "content": [
- {
- "contentType": "text",
- "mediaType": "string",
- "fileName": "string",
- "body": "string"
}
], - "model": "claude-instant-v1",
- "children": [
- "string"
], - "feedback": {
- "thumbsUp": true,
- "category": "string",
- "comment": "string"
}, - "usedChunks": [
- {
- "content": "string",
- "contentType": "string",
- "source": "string",
- "rank": 0
}
], - "parent": "string",
- "thinkingLog": [
- {
- "role": "string",
- "content": [
- {
- "contentType": "text",
- "body": "string"
}
]
}
]
}, - "createTime": 0
}