diff --git a/client/public/icon/logo.png b/client/public/icon/logo.png deleted file mode 100644 index 3fd0c8784..000000000 Binary files a/client/public/icon/logo.png and /dev/null differ diff --git a/client/public/locales/en/common.json b/client/public/locales/en/common.json index 4accb501d..b2b1ce2e4 100644 --- a/client/public/locales/en/common.json +++ b/client/public/locales/en/common.json @@ -38,11 +38,11 @@ "Complete Response": "Complete Response", "Confirm to clear history": "Confirm to clear history?", "Exit Chat": "Exit", + "Feedback Close": "Close Feedback", "Feedback Failed": "Feedback Failed", "Feedback Mark": "Mark", "Feedback Modal": "Feedback", "Feedback Modal Tip": "Enter what you find unsatisfactory", - "Feedback Close": "Close Feedback", "Feedback Submit": "Submit", "Feedback Success": "Feedback Success", "Feedback Update Failed": "Feedback Update Failed", @@ -110,9 +110,9 @@ "Choice Extension": "Infinite Extension", "Choice Extension Desc": "HTTP based extension, easy to achieve custom functions", "Choice Models": "Multiple Models", - "Choice Models Desc": "", + "Choice Models Desc": "Supports multiple models such as GPT, Claude, Spark, and ChatGLM", "Choice Open": "Open", - "Choice Open Desc": "", + "Choice Open Desc": "{{title}} follows the Apache License 2.0 open source protocol", "Choice QA": "QA Struceture", "Choice QA Desc": "The index is constructed with the structure of QA pairs, and ADAPTS to various scenarios such as Q&A and reading", "Choice Visual": "Visual workflow", @@ -121,12 +121,12 @@ "Dateset": "", "Dateset Desc": "", "Docs": "Docs", - "FastGPT Ability": "FastGPT Ability", - "FastGPT Desc": "FastGPT is a knowledgebase question answering system based on LLM large language model, which provides out-of-the-box data processing, model invocation and other capabilities. At the same time, workflow orchestration can be performed through Flow visualization to achieve complex Q&A scenarios!", + "FastGPT Ability": "{{title}} Ability", + "FastGPT Desc": "{{title}} is a knowledgebase question answering system based on LLM large language model, which provides out-of-the-box data processing, model invocation and other capabilities. At the same time, workflow orchestration can be performed through Flow visualization to achieve complex Q&A scenarios!", "Features": "Features", "Footer Developer": "Developer", "Footer Docs": "Docs", - "Footer FastGPT Cloud": "FastGPT Cloud", + "Footer FastGPT Cloud": "{{title}} Cloud", "Footer Feedback": "Feedback", "Footer Git": "Code", "Footer Product": "Product", @@ -138,7 +138,7 @@ "Quickly build AI question and answer library": "Quickly build AI question and answer library", "Start Now": "Start Now", "Visual AI orchestration": "Visual AI orchestration", - "Why FastGPT": "", + "Why FastGPT": "Why {{title}}", "desc": "AI knowledge base question and answer platform based on LLM large model", "slogan": "Let the AI know more about you" }, diff --git a/client/public/locales/zh/common.json b/client/public/locales/zh/common.json index 6022e06f6..2391a646b 100644 --- a/client/public/locales/zh/common.json +++ b/client/public/locales/zh/common.json @@ -38,11 +38,11 @@ "Complete Response": "完整响应", "Confirm to clear history": "确认清空该应用的聊天记录?", "Exit Chat": "退出聊天", + "Feedback Close": "关闭反馈", "Feedback Failed": "提交反馈异常", "Feedback Mark": "标注", "Feedback Modal": "结果反馈", "Feedback Modal Tip": "输入你觉得回答不满意的地方", - "Feedback Close": "关闭反馈", "Feedback Submit": "提交反馈", "Feedback Success": "反馈成功!", "Feedback Update Failed": "更新反馈状态失败", @@ -110,9 +110,9 @@ "Choice Extension": "无限扩展", "Choice Extension Desc": "基于 HTTP 实现扩展,轻松实现定制功能", "Choice Models": "支持多种模型", - "Choice Models Desc": "支持 GPT、Claude、文心一言等多模型", + "Choice Models Desc": "支持 GPT、Claude、Spark、ChatGLM等多模型", "Choice Open": "更开放", - "Choice Open Desc": "FastGPT 遵循 Apache License 2.0 开源协议", + "Choice Open Desc": "{{title}} 遵循 Apache License 2.0 开源协议", "Choice QA": "独特的 QA 结构", "Choice QA Desc": "采用 QA 对的结构构建索引,适应问答、阅读等多种场景", "Choice Visual": "可视化工作流", @@ -121,12 +121,12 @@ "Dateset": "自动数据预处理", "Dateset Desc": "提供手动输入、直接分段、LLM 自动处理和 CSV 等多种数据导入途径", "Docs": "文档", - "FastGPT Ability": "FastGPT 能力", - "FastGPT Desc": "FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的问答场景!", + "FastGPT Ability": "{{title}} 能力", + "FastGPT Desc": "{{title}} 是一个基于 LLM 大语言模型的知识库问答系统,提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的问答场景!", "Features": "特点", "Footer Developer": "开发者", "Footer Docs": "文档", - "Footer FastGPT Cloud": "FastGPT 线上服务", + "Footer FastGPT Cloud": "{{title}} 线上服务", "Footer Feedback": "反馈", "Footer Git": "源码", "Footer Product": "产品", @@ -138,7 +138,7 @@ "Quickly build AI question and answer library": "快速搭建 AI 问答系统", "Start Now": "立即开始", "Visual AI orchestration": "可视化 AI 编排", - "Why FastGPT": "为什么选择 FastGPT", + "Why FastGPT": "为什么选择 {{title}}", "desc": "基于 LLM 大模型的 AI 知识库问答平台", "slogan": "让 AI 更懂你的知识" }, diff --git a/client/src/api/app.ts b/client/src/api/app.ts index 50fb2d902..355464dbf 100644 --- a/client/src/api/app.ts +++ b/client/src/api/app.ts @@ -4,6 +4,7 @@ import type { AppListItemType, AppUpdateParams } from '@/types/app'; import { RequestPaging } from '../types/index'; import type { Props as CreateAppProps } from '@/pages/api/app/create'; import { addDays } from 'date-fns'; +import { GetAppChatLogsParams } from './request/app'; /** * 获取模型列表 @@ -52,5 +53,4 @@ export const getAppTotalUsage = (data: { appId: string }) => end: addDays(new Date(), 1) }).then((res) => (res.length === 0 ? [{ date: new Date(), total: 0 }] : res)); -export const getAppChatLogs = (data: RequestPaging & { appId: string }) => - POST(`/app/getChatLogs`, data); +export const getAppChatLogs = (data: GetAppChatLogsParams) => POST(`/app/getChatLogs`, data); diff --git a/client/src/api/request/app.d.ts b/client/src/api/request/app.d.ts new file mode 100644 index 000000000..7668e5355 --- /dev/null +++ b/client/src/api/request/app.d.ts @@ -0,0 +1,7 @@ +import { RequestPaging } from '@/types'; + +export type GetAppChatLogsParams = RequestPaging & { + appId: string; + dateStart: Date; + dateEnd: Date; +}; diff --git a/client/src/pages/_app.tsx b/client/src/pages/_app.tsx index 5f9fc5cd0..4b65dff98 100644 --- a/client/src/pages/_app.tsx +++ b/client/src/pages/_app.tsx @@ -64,7 +64,7 @@ function App({ Component, pageProps }: AppProps) { return ( <>
-