Chore/update flowise embed version (#2722)
* update flowise-embed version on lock file * add agent messages to share chatbot
This commit is contained in:
parent
96dfedde6e
commit
d0354bb25c
|
|
@ -1,6 +1,6 @@
|
||||||
# Contributor Covenant Code of Conduct
|
# Contributor Covenant Code of Conduct
|
||||||
|
|
||||||
English | [中文](<./i18n/CODE_OF_CONDUCT-ZH.md>)
|
English | [中文](./i18n/CODE_OF_CONDUCT-ZH.md)
|
||||||
|
|
||||||
## Our Pledge
|
## Our Pledge
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ Flowise has 3 different modules in a single mono repository.
|
||||||
Flowise support different environment variables to configure your instance. You can specify the following variables in the `.env` file inside `packages/server` folder. Read [more](https://docs.flowiseai.com/environment-variables)
|
Flowise support different environment variables to configure your instance. You can specify the following variables in the `.env` file inside `packages/server` folder. Read [more](https://docs.flowiseai.com/environment-variables)
|
||||||
|
|
||||||
| Variable | Description | Type | Default |
|
| Variable | Description | Type | Default |
|
||||||
| ---------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------ | ----------------------------------- |
|
| ---------------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------ | ----------------------------------- |
|
||||||
| PORT | The HTTP port Flowise runs on | Number | 3000 |
|
| PORT | The HTTP port Flowise runs on | Number | 3000 |
|
||||||
| CORS_ORIGINS | The allowed origins for all cross-origin HTTP calls | String | |
|
| CORS_ORIGINS | The allowed origins for all cross-origin HTTP calls | String | |
|
||||||
| IFRAME_ORIGINS | The allowed origins for iframe src embedding | String | |
|
| IFRAME_ORIGINS | The allowed origins for iframe src embedding | String | |
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# 贡献者公约行为准则
|
# 贡献者公约行为准则
|
||||||
|
|
||||||
[English](<../CODE_OF_CONDUCT.md>) | 中文
|
[English](../CODE_OF_CONDUCT.md) | 中文
|
||||||
|
|
||||||
## 我们的承诺
|
## 我们的承诺
|
||||||
|
|
||||||
|
|
@ -44,6 +44,6 @@
|
||||||
|
|
||||||
## 归属
|
## 归属
|
||||||
|
|
||||||
该行为准则的内容来自于[贡献者公约](http://contributor-covenant.org/)1.4版,可在[http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4)上获取。
|
该行为准则的内容来自于[贡献者公约](http://contributor-covenant.org/)1.4 版,可在[http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4)上获取。
|
||||||
|
|
||||||
[主页]: http://contributor-covenant.org
|
[主页]: http://contributor-covenant.org
|
||||||
|
|
|
||||||
|
|
@ -119,12 +119,12 @@ Flowise 在一个单一的单体存储库中有 3 个不同的模块。
|
||||||
Flowise 支持不同的环境变量来配置您的实例。您可以在 `packages/server` 文件夹中的 `.env` 文件中指定以下变量。阅读[更多信息](https://docs.flowiseai.com/environment-variables)
|
Flowise 支持不同的环境变量来配置您的实例。您可以在 `packages/server` 文件夹中的 `.env` 文件中指定以下变量。阅读[更多信息](https://docs.flowiseai.com/environment-variables)
|
||||||
|
|
||||||
| 变量名 | 描述 | 类型 | 默认值 |
|
| 变量名 | 描述 | 类型 | 默认值 |
|
||||||
| ---------------------------- | ------------------------------------------------------- | ----------------------------------------------- | ----------------------------------- |
|
| ---------------------------- | -------------------------------------------------------------------- | ----------------------------------------------- | ----------------------------------- |
|
||||||
| PORT | Flowise 运行的 HTTP 端口 | 数字 | 3000 |
|
| PORT | Flowise 运行的 HTTP 端口 | 数字 | 3000 |
|
||||||
| FLOWISE_USERNAME | 登录用户名 | 字符串 | |
|
| FLOWISE_USERNAME | 登录用户名 | 字符串 | |
|
||||||
| FLOWISE_PASSWORD | 登录密码 | 字符串 | |
|
| FLOWISE_PASSWORD | 登录密码 | 字符串 | |
|
||||||
| FLOWISE_FILE_SIZE_LIMIT | 上传文件大小限制 | 字符串 | 50mb |
|
| FLOWISE_FILE_SIZE_LIMIT | 上传文件大小限制 | 字符串 | 50mb |
|
||||||
| DISABLE_CHATFLOW_REUSE | 强制为每次调用创建一个新的ChatFlow,而不是重用缓存中的现有ChatFlow | 布尔值 | |
|
| DISABLE_CHATFLOW_REUSE | 强制为每次调用创建一个新的 ChatFlow,而不是重用缓存中的现有 ChatFlow | 布尔值 | |
|
||||||
| DEBUG | 打印组件的日志 | 布尔值 | |
|
| DEBUG | 打印组件的日志 | 布尔值 | |
|
||||||
| LOG_PATH | 存储日志文件的位置 | 字符串 | `your-path/Flowise/logs` |
|
| LOG_PATH | 存储日志文件的位置 | 字符串 | `your-path/Flowise/logs` |
|
||||||
| LOG_LEVEL | 日志的不同级别 | 枚举字符串: `error`, `info`, `verbose`, `debug` | `info` |
|
| LOG_LEVEL | 日志的不同级别 | 枚举字符串: `error`, `info`, `verbose`, `debug` | `info` |
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,8 @@ const CanvasHeader = ({ chatflow, isAgentCanvas, handleSaveFlow, handleDeleteFlo
|
||||||
chatflowid: chatflow.id,
|
chatflowid: chatflow.id,
|
||||||
chatflowApiKeyId: chatflow.apikeyid,
|
chatflowApiKeyId: chatflow.apikeyid,
|
||||||
isFormDataRequired,
|
isFormDataRequired,
|
||||||
isSessionMemory
|
isSessionMemory,
|
||||||
|
isAgentCanvas
|
||||||
})
|
})
|
||||||
setAPIDialogOpen(true)
|
setAPIDialogOpen(true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,11 @@ const ChatbotFull = () => {
|
||||||
setChatflow(chatflowData)
|
setChatflow(chatflowData)
|
||||||
if (chatflowData.chatbotConfig) {
|
if (chatflowData.chatbotConfig) {
|
||||||
try {
|
try {
|
||||||
|
const chatflowType = chatflowData.type
|
||||||
const parsedConfig = JSON.parse(chatflowData.chatbotConfig)
|
const parsedConfig = JSON.parse(chatflowData.chatbotConfig)
|
||||||
|
if (chatflowType === 'MULTIAGENT') {
|
||||||
|
parsedConfig.showAgentMessages = true
|
||||||
|
}
|
||||||
setChatbotTheme(parsedConfig)
|
setChatbotTheme(parsedConfig)
|
||||||
if (parsedConfig.overrideConfig) {
|
if (parsedConfig.overrideConfig) {
|
||||||
// Generate new sessionId
|
// Generate new sessionId
|
||||||
|
|
|
||||||
|
|
@ -740,7 +740,7 @@ formData.append("openAIApiKey[openAIEmbeddings_0]", "sk-my-openai-2nd-key")`
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{codeLang === 'Share Chatbot' && !chatflowApiKeyId && (
|
{codeLang === 'Share Chatbot' && !chatflowApiKeyId && (
|
||||||
<ShareChatbot isSessionMemory={dialogProps.isSessionMemory} />
|
<ShareChatbot isSessionMemory={dialogProps.isSessionMemory} isAgentCanvas={dialogProps.isAgentCanvas} />
|
||||||
)}
|
)}
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ const defaultConfig = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const ShareChatbot = ({ isSessionMemory }) => {
|
const ShareChatbot = ({ isSessionMemory, isAgentCanvas }) => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
const theme = useTheme()
|
const theme = useTheme()
|
||||||
const chatflow = useSelector((state) => state.canvas.chatflow)
|
const chatflow = useSelector((state) => state.canvas.chatflow)
|
||||||
|
|
@ -139,6 +139,8 @@ const ShareChatbot = ({ isSessionMemory }) => {
|
||||||
|
|
||||||
if (chatbotConfig?.starterPrompts) obj.starterPrompts = chatbotConfig.starterPrompts
|
if (chatbotConfig?.starterPrompts) obj.starterPrompts = chatbotConfig.starterPrompts
|
||||||
|
|
||||||
|
if (isAgentCanvas) obj.showAgentMessages = true
|
||||||
|
|
||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -516,7 +518,8 @@ const ShareChatbot = ({ isSessionMemory }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
ShareChatbot.propTypes = {
|
ShareChatbot.propTypes = {
|
||||||
isSessionMemory: PropTypes.bool
|
isSessionMemory: PropTypes.bool,
|
||||||
|
isAgentCanvas: PropTypes.bool
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ShareChatbot
|
export default ShareChatbot
|
||||||
|
|
|
||||||
509
pnpm-lock.yaml
509
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue