From 9a3d5729bbcef2a552783ce0b0b6f6ed94f10c92 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 20 Mar 2024 20:08:26 +0800 Subject: [PATCH] fix: suggest service api missed user in query (#2918) --- .../components/develop/template/template_chat.en.mdx | 10 +++++++++- .../components/develop/template/template_chat.zh.mdx | 9 ++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/web/app/components/develop/template/template_chat.en.mdx b/web/app/components/develop/template/template_chat.en.mdx index d4d1e8e4b6..6a0066bbe6 100644 --- a/web/app/components/develop/template/template_chat.en.mdx +++ b/web/app/components/develop/template/template_chat.en.mdx @@ -444,10 +444,18 @@ Chat applications support session persistence, allowing previous chat history to Message ID + + ### Query + + + User identifier, used to define the identity of the end-user for retrieval and statistics. + Should be uniquely defined by the developer within the application. + + - + ```bash {{ title: 'cURL' }} curl --location --request GET '${props.appDetail.api_base_url}/messages/{message_id}/suggested' \ diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx index dc8d600d00..e513f39339 100644 --- a/web/app/components/develop/template/template_chat.zh.mdx +++ b/web/app/components/develop/template/template_chat.zh.mdx @@ -459,10 +459,17 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' Message ID + + ### Query + + + 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。 + + - + ```bash {{ title: 'cURL' }} curl --location --request GET '${props.appDetail.api_base_url}/messages/{message_id}/suggested' \