From 4b0d9272ef8889c56a77325e0f06535ee9a1d7a7 Mon Sep 17 00:00:00 2001 From: crazywoola <100913391+crazywoola@users.noreply.github.com> Date: Sun, 13 Aug 2023 20:30:17 +0800 Subject: [PATCH] Fix 802 (#826) --- web/app/components/develop/template/template_chat.en.mdx | 2 +- web/app/components/develop/template/template_chat.zh.mdx | 2 +- 2 files changed, 2 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 b13ae74ee6..ae995d5ba4 100644 --- a/web/app/components/develop/template/template_chat.en.mdx +++ b/web/app/components/develop/template/template_chat.en.mdx @@ -165,7 +165,7 @@ For versatile conversational apps using a Q&A format, call the chat-messages API /> - The first page returns the latest `limit` bar, which is in reverse order. + The first page returns the latest `limit` bar, which is in reverse order. Load previous pages by passing the `first_id` of the last message on the current page to the `first_id` parameter of the next request. ### Query diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx index 98d8a6d79c..4e3f6a992c 100644 --- a/web/app/components/develop/template/template_chat.zh.mdx +++ b/web/app/components/develop/template/template_chat.zh.mdx @@ -165,7 +165,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' /> - 滚动加载形式返回历史聊天记录,第一页返回最新 `limit` 条,即:倒序返回。 + 滚动加载形式返回历史聊天记录,第一页返回最新 `limit` 条,加载更多时,返回 `first_id` 之前的 `limit` 条。 ### Query