2
0

(api) Add textBubbleContentFormat option

Closes #1111
This commit is contained in:
Baptiste Arnaud
2024-05-23 16:30:56 +02:00
parent 3031d26f03
commit c53ce349af
22 changed files with 155 additions and 37 deletions

View File

@@ -11,8 +11,14 @@ type Props = {
origin: string | undefined
message?: string
sessionId: string
textBubbleContentFormat: 'richText' | 'markdown'
}
export const continueChat = async ({ origin, sessionId, message }: Props) => {
export const continueChat = async ({
origin,
sessionId,
message,
textBubbleContentFormat,
}: Props) => {
const session = await getSession(sessionId)
if (!session) {
@@ -57,6 +63,7 @@ export const continueChat = async ({ origin, sessionId, message }: Props) => {
version: 2,
state: session.state,
startTime: Date.now(),
textBubbleContentFormat,
})
if (newSessionState)