Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5f0f9f872c | |||
| 57c37b372b | |||
| 54eb9db20f | |||
| 77dbc14a64 | |||
| 3d796bda54 | |||
| 82988d5204 | |||
| bce67e4e18 | |||
| 8d21cbc2da | |||
| 7bb19ed8ec | |||
| df0ae34be1 |
@@ -0,0 +1,6 @@
|
|||||||
|
# APP ID
|
||||||
|
NEXT_PUBLIC_APP_ID=CZWnDB2R6c33DNQo
|
||||||
|
# APP API key
|
||||||
|
NEXT_PUBLIC_APP_KEY=app-XjHOyWCSJtAe8u5YOIGwZMdo
|
||||||
|
# API url prefix
|
||||||
|
NEXT_PUBLIC_API_URL=http://127.0.0.1:8000/v1
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# APP ID
|
||||||
|
NEXT_PUBLIC_APP_ID=CZWnDB2R6c33DNQo
|
||||||
|
# APP API key
|
||||||
|
NEXT_PUBLIC_APP_KEY=app-XjHOyWCSJtAe8u5YOIGwZMdo
|
||||||
|
# API url prefix
|
||||||
|
NEXT_PUBLIC_API_URL=http://10.1.0.142:5001/v1
|
||||||
Vendored
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"prettier.enable": false,
|
"prettier.enable": false,
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": "explicit"
|
||||||
},
|
},
|
||||||
"[python]": {
|
"[python]": {
|
||||||
"editor.formatOnType": true
|
"editor.formatOnType": true
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
|
|||||||
|
|
||||||
## Deploy on Vercel
|
## Deploy on Vercel
|
||||||
|
|
||||||
> ⚠️ If you are using [Vercel Hobby](https://vercel.com/pricing), your message will be trucated due to the limitation of vercel.
|
> ⚠️ If you are using [Vercel Hobby](https://vercel.com/pricing), your message will be truncated due to the limitation of vercel.
|
||||||
|
|
||||||
|
|
||||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ const Main: FC = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (APP_INFO?.title)
|
if (APP_INFO?.title)
|
||||||
document.title = `${APP_INFO.title} - Powered by Dify`
|
document.title = `${APP_INFO.title} - Powered by Booway`
|
||||||
}, [APP_INFO?.title])
|
}, [APP_INFO?.title])
|
||||||
|
|
||||||
// onData change thought (the produce obj). https://github.com/immerjs/immer/issues/576
|
// onData change thought (the produce obj). https://github.com/immerjs/immer/issues/576
|
||||||
@@ -207,7 +207,7 @@ const Main: FC = () => {
|
|||||||
isOpeningStatement: isShowPrompt,
|
isOpeningStatement: isShowPrompt,
|
||||||
}
|
}
|
||||||
if (calculatedIntroduction)
|
if (calculatedIntroduction)
|
||||||
return [openStatement]
|
return [openstatement]
|
||||||
|
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -3,11 +3,11 @@ export const APP_ID = `${process.env.NEXT_PUBLIC_APP_ID}`
|
|||||||
export const API_KEY = `${process.env.NEXT_PUBLIC_APP_KEY}`
|
export const API_KEY = `${process.env.NEXT_PUBLIC_APP_KEY}`
|
||||||
export const API_URL = `${process.env.NEXT_PUBLIC_API_URL}`
|
export const API_URL = `${process.env.NEXT_PUBLIC_API_URL}`
|
||||||
export const APP_INFO: AppInfo = {
|
export const APP_INFO: AppInfo = {
|
||||||
title: 'Chat APP',
|
title: '博微造价工程助手',
|
||||||
description: '',
|
description: '',
|
||||||
copyright: '',
|
copyright: '江西博微新技术有限公司',
|
||||||
privacy_policy: '',
|
privacy_policy: '',
|
||||||
default_language: 'en',
|
default_language: 'zh-Hans',
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isShowPrompt = false
|
export const isShowPrompt = false
|
||||||
|
|||||||
+3
-2
@@ -19,10 +19,11 @@
|
|||||||
"@mdx-js/loader": "^2.3.0",
|
"@mdx-js/loader": "^2.3.0",
|
||||||
"@mdx-js/react": "^2.3.0",
|
"@mdx-js/react": "^2.3.0",
|
||||||
"@monaco-editor/react": "^4.6.0",
|
"@monaco-editor/react": "^4.6.0",
|
||||||
|
"@remixicon/react": "^4.2.0",
|
||||||
"@tailwindcss/line-clamp": "^0.4.2",
|
"@tailwindcss/line-clamp": "^0.4.2",
|
||||||
"@types/node": "18.15.0",
|
"@types/node": "18.15.0",
|
||||||
"@types/react": "18.0.28",
|
"@types/react": "^18.3.4",
|
||||||
"@types/react-dom": "18.0.11",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@types/react-syntax-highlighter": "^15.5.6",
|
"@types/react-syntax-highlighter": "^15.5.6",
|
||||||
"ahooks": "^3.7.5",
|
"ahooks": "^3.7.5",
|
||||||
"axios": "^1.3.5",
|
"axios": "^1.3.5",
|
||||||
|
|||||||
+10
-1
@@ -1,5 +1,5 @@
|
|||||||
import type { IOnCompleted, IOnData, IOnError, IOnFile, IOnMessageEnd, IOnMessageReplace, IOnNodeFinished, IOnNodeStarted, IOnThought, IOnWorkflowFinished, IOnWorkflowStarted } from './base'
|
import type { IOnCompleted, IOnData, IOnError, IOnFile, IOnMessageEnd, IOnMessageReplace, IOnNodeFinished, IOnNodeStarted, IOnThought, IOnWorkflowFinished, IOnWorkflowStarted } from './base'
|
||||||
import { get, post, ssePost } from './base'
|
import { get, post, del, ssePost } from './base'
|
||||||
import type { Feedbacktype } from '@/types/app'
|
import type { Feedbacktype } from '@/types/app'
|
||||||
|
|
||||||
export const sendChatMessage = async (
|
export const sendChatMessage = async (
|
||||||
@@ -60,3 +60,12 @@ export const updateFeedback = async ({ url, body }: { url: string; body: Feedbac
|
|||||||
export const generationConversationName = async (id: string) => {
|
export const generationConversationName = async (id: string) => {
|
||||||
return post(`conversations/${id}/name`, { body: { auto_generate: true } })
|
return post(`conversations/${id}/name`, { body: { auto_generate: true } })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const renameConversation = async (id: string, name: string) => {
|
||||||
|
return post(`conversations/${id}/name`, { body: { name: name, auto_generate: false } })
|
||||||
|
}
|
||||||
|
|
||||||
|
export const deleteConversation = async (id: string) => {
|
||||||
|
return del(`conversations/${id}`)
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user