Commit 0304a176 authored by Joel's avatar Joel

Merge branch 'fix/package-changed-build-error' into deploy/dev

parents 821e1934 63aa88b5
...@@ -388,7 +388,6 @@ And answer according to the language of the user's question. ...@@ -388,7 +388,6 @@ And answer according to the language of the user's question.
pre_prompt=pre_prompt, pre_prompt=pre_prompt,
query=message.query, query=message.query,
inputs=message.inputs, inputs=message.inputs,
chain_output=None,
agent_execute_result=None, agent_execute_result=None,
memory=None memory=None
) )
......
...@@ -27,6 +27,7 @@ import NotionIcon from '@/app/components/base/notion-icon' ...@@ -27,6 +27,7 @@ import NotionIcon from '@/app/components/base/notion-icon'
import Switch from '@/app/components/base/switch' import Switch from '@/app/components/base/switch'
import { MessageChatSquare } from '@/app/components/base/icons/src/public/common' import { MessageChatSquare } from '@/app/components/base/icons/src/public/common'
import { useDatasetDetailContext } from '@/context/dataset-detail' import { useDatasetDetailContext } from '@/context/dataset-detail'
import { IS_CE_EDITION } from '@/config'
type Page = DataSourceNotionPage & { workspace_id: string } type Page = DataSourceNotionPage & { workspace_id: string }
...@@ -572,7 +573,7 @@ const StepTwo = ({ ...@@ -572,7 +573,7 @@ const StepTwo = ({
<Link className='text-[#155EEF]' href={`/datasets/${datasetId}/settings`}>{t('datasetCreation.stepTwo.datasetSettingLink')}</Link> <Link className='text-[#155EEF]' href={`/datasets/${datasetId}/settings`}>{t('datasetCreation.stepTwo.datasetSettingLink')}</Link>
</div> </div>
)} )}
{indexType === IndexingType.QUALIFIED && ( {IS_CE_EDITION && indexType === IndexingType.QUALIFIED && (
<div className='flex justify-between items-center mt-3 px-5 py-4 rounded-xl bg-gray-50 border border-gray-100'> <div className='flex justify-between items-center mt-3 px-5 py-4 rounded-xl bg-gray-50 border border-gray-100'>
<div className='flex justify-center items-center w-8 h-8 rounded-lg bg-indigo-50'> <div className='flex justify-center items-center w-8 h-8 rounded-lg bg-indigo-50'>
<MessageChatSquare className='w-4 h-4' /> <MessageChatSquare className='w-4 h-4' />
......
...@@ -3,7 +3,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from ...@@ -3,7 +3,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, Paragraph } from
# Chat App API # Chat App API
For versatile conversational apps using a Q&A format, call the chat-messages API to initiate dialogue. Maintain ongoing conversations by passing the returned conversation_id. Response parameters and templates depend on LangGenius Prompt Eng. settings. For versatile conversational apps using a Q&A format, call the chat-messages API to initiate dialogue. Maintain ongoing conversations by passing the returned conversation_id. Response parameters and templates depend on LangGenius Prompt Eng. settings. **[Before you start, READ This !! What is a Bearer Token](https://swagger.io/docs/specification/authentication/bearer-authentication/)**
<Heading <Heading
url='/chat-messages' url='/chat-messages'
...@@ -38,7 +38,7 @@ For versatile conversational apps using a Q&A format, call the chat-messages API ...@@ -38,7 +38,7 @@ For versatile conversational apps using a Q&A format, call the chat-messages API
- streaming returns. Implementation of streaming return based on SSE (**[Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)**). - streaming returns. Implementation of streaming return based on SSE (**[Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)**).
</Property> </Property>
<Property name='conversation_id' type='string' key='conversation_id'> <Property name='conversation_id' type='string' key='conversation_id'>
(Optional) Conversation ID: leave empty for first-time conversation; pass conversation_id from context to continue dialogue. (Optional) Conversation ID: <strong>‼️ leave empty for first-time conversation ‼️</strong>; pass conversation_id from context to continue dialogue.
</Property> </Property>
<Property name='user' type='string' key='user'> <Property name='user' type='string' key='user'>
The user identifier, defined by the developer, must ensure uniqueness within the app. The user identifier, defined by the developer, must ensure uniqueness within the app.
......
...@@ -3,7 +3,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' ...@@ -3,7 +3,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
# 对话型应用 API # 对话型应用 API
可用于大部分场景的对话型应用,采用一问一答模式与用户持续对话。要开始一个对话请调用 chat-messages 接口,通过继续传入返回的 conversation_id 可持续保持该会话。 可用于大部分场景的对话型应用,采用一问一答模式与用户持续对话。要开始一个对话请调用 chat-messages 接口,通过继续传入返回的 conversation_id 可持续保持该会话。**[开始前请阅读 !! 什么是 Bearer Token ?](https://swagger.io/docs/specification/authentication/bearer-authentication/)**
<Heading <Heading
url='/chat-messages' url='/chat-messages'
...@@ -38,7 +38,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx' ...@@ -38,7 +38,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
- streaming 流式返回。基于 SSE(**[Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)**)实现流式返回。 - streaming 流式返回。基于 SSE(**[Server-Sent Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events)**)实现流式返回。
</Property> </Property>
<Property name='conversation_id' type='string' key='conversation_id'> <Property name='conversation_id' type='string' key='conversation_id'>
(选填)会话标识符,首次对话可为空,如果要继续对话请传入上下文返回的 conversation_id (选填)<strong>‼️ 会话标识符,首次对话为空 ‼️</strong>,如果要继续对话请传入上下文返回的 conversation_id
</Property> </Property>
<Property name='user' type='string' key='user'> <Property name='user' type='string' key='user'>
用户标识,由开发者定义规则,需保证用户标识在应用内唯一。 用户标识,由开发者定义规则,需保证用户标识在应用内唯一。
......
...@@ -101,7 +101,7 @@ const Apps: FC = () => { ...@@ -101,7 +101,7 @@ const Apps: FC = () => {
}} }}
> >
<nav <nav
className={`${s.appList} grid content-start grid-cols-1 gap-4 px-12 pb-10grow shrink-0`}> className={`${s.appList} grid content-start gap-4 px-12 shrink-0`}>
{currList.map(app => ( {currList.map(app => (
<AppCard <AppCard
key={app.app_id} key={app.app_id}
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
text-fill-color: transparent; text-fill-color: transparent;
} }
.appList {
grid-template-columns: repeat(1, minmax(0, 1fr))
}
@media (min-width: 1624px) { @media (min-width: 1624px) {
.appList { .appList {
grid-template-columns: repeat(4, minmax(0, 1fr)) grid-template-columns: repeat(4, minmax(0, 1fr))
......
...@@ -24,19 +24,7 @@ ...@@ -24,19 +24,7 @@
"@next/mdx": "^13.2.4", "@next/mdx": "^13.2.4",
"@sentry/react": "^7.54.0", "@sentry/react": "^7.54.0",
"@sentry/utils": "^7.54.0", "@sentry/utils": "^7.54.0",
"@tailwindcss/line-clamp": "^0.4.2",
"@tailwindcss/typography": "^0.5.9",
"@types/crypto-js": "^4.1.1",
"@types/lodash-es": "^4.17.7",
"@types/node": "18.15.0",
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"@types/react-slider": "^1.3.1",
"@types/react-syntax-highlighter": "^15.5.6",
"@types/react-window": "^1.8.5",
"@types/react-window-infinite-loader": "^1.0.6",
"ahooks": "^3.7.5", "ahooks": "^3.7.5",
"autoprefixer": "^10.4.14",
"classnames": "^2.3.2", "classnames": "^2.3.2",
"copy-to-clipboard": "^3.3.3", "copy-to-clipboard": "^3.3.3",
"crypto-js": "^4.1.1", "crypto-js": "^4.1.1",
...@@ -44,7 +32,6 @@ ...@@ -44,7 +32,6 @@
"echarts": "^5.4.1", "echarts": "^5.4.1",
"echarts-for-react": "^3.0.2", "echarts-for-react": "^3.0.2",
"emoji-mart": "^5.5.2", "emoji-mart": "^5.5.2",
"eslint": "8.36.0",
"husky": "^8.0.3", "husky": "^8.0.3",
"i18next": "^22.4.13", "i18next": "^22.4.13",
"i18next-resources-to-backend": "^1.1.3", "i18next-resources-to-backend": "^1.1.3",
...@@ -52,6 +39,7 @@ ...@@ -52,6 +39,7 @@
"js-audio-recorder": "^1.0.7", "js-audio-recorder": "^1.0.7",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
"katex": "^0.16.7", "katex": "^0.16.7",
"lamejs": "1.2.0",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"negotiator": "^0.6.3", "negotiator": "^0.6.3",
"next": "13.3.1", "next": "13.3.1",
...@@ -75,30 +63,42 @@ ...@@ -75,30 +63,42 @@
"remark-breaks": "^3.0.2", "remark-breaks": "^3.0.2",
"remark-gfm": "^3.0.1", "remark-gfm": "^3.0.1",
"remark-math": "^5.1.1", "remark-math": "^5.1.1",
"sass": "^1.61.0",
"scheduler": "^0.23.0", "scheduler": "^0.23.0",
"server-only": "^0.0.1", "server-only": "^0.0.1",
"sortablejs": "^1.15.0", "sortablejs": "^1.15.0",
"swr": "^2.1.0", "swr": "^2.1.0",
"tailwindcss": "^3.2.7", "tailwindcss": "^3.3.3",
"typescript": "4.9.5", "use-context-selector": "^1.4.1"
"use-context-selector": "^1.4.1",
"lamejs": "1.2.0"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^0.36.0", "@antfu/eslint-config": "^0.36.0",
"@faker-js/faker": "^7.6.0", "@faker-js/faker": "^7.6.0",
"@rgrove/parse-xml": "^4.1.0", "@rgrove/parse-xml": "^4.1.0",
"@tailwindcss/line-clamp": "^0.4.4",
"@tailwindcss/typography": "^0.5.9",
"@types/crypto-js": "^4.1.1",
"@types/js-cookie": "^3.0.3", "@types/js-cookie": "^3.0.3",
"@types/lodash-es": "^4.17.7",
"@types/node": "18.15.0",
"@types/negotiator": "^0.6.1", "@types/negotiator": "^0.6.1",
"@types/qs": "^6.9.7", "@types/qs": "^6.9.7",
"@types/react": "18.0.28",
"@types/react-dom": "18.0.11",
"@types/react-slider": "^1.3.1",
"@types/react-syntax-highlighter": "^15.5.6",
"@types/react-window": "^1.8.5",
"@types/react-window-infinite-loader": "^1.0.6",
"@types/recordrtc": "^5.6.11", "@types/recordrtc": "^5.6.11",
"@types/sortablejs": "^1.15.1", "@types/sortablejs": "^1.15.1",
"autoprefixer": "^10.4.14",
"eslint": "8.36.0",
"eslint-config-next": "^13.4.7", "eslint-config-next": "^13.4.7",
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.0",
"lint-staged": "^13.2.2", "lint-staged": "^13.2.2",
"miragejs": "^0.1.47", "miragejs": "^0.1.47",
"postcss": "^8.4.21", "postcss": "^8.4.21",
"sass": "^1.61.0",
"typescript": "4.9.5",
"uglify-js": "^3.17.4" "uglify-js": "^3.17.4"
}, },
"lint-staged": { "lint-staged": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment