perf: global variable any type (#1387)

This commit is contained in:
Archer
2024-05-07 18:54:32 +08:00
committed by GitHub
parent fef1a1702b
commit caa0755d9a
2 changed files with 2 additions and 4 deletions

View File

@@ -17,8 +17,6 @@ images: []
4. 无法解决时,可以找找[Issue](https://github.com/labring/FastGPT/issues),或新提 Issue私有部署错误务必提供详细的日志否则很难排查。 4. 无法解决时,可以找找[Issue](https://github.com/labring/FastGPT/issues),或新提 Issue私有部署错误务必提供详细的日志否则很难排查。
## 二、通用问题 ## 二、通用问题
### 能否纯本地运行 ### 能否纯本地运行
@@ -47,7 +45,7 @@ images: []
### 模型响应为空(core.chat.Chat API is error or undefined) ### 模型响应为空(core.chat.Chat API is error or undefined)
1. 检查 key 问题。 1. 检查 key 问题。curl 请求看是否正常。务必用 stream=true 模式。并且 maxToken 等相关参数尽量一致。
2. 如果是国内模型,可能是命中风控了。 2. 如果是国内模型,可能是命中风控了。
3. 查看模型请求日志,检查出入参数是否异常。 3. 查看模型请求日志,检查出入参数是否异常。

View File

@@ -291,7 +291,7 @@ export const getWorkflowGlobalVariables = (
splitGuideModule(getGuideModule(nodes))?.variableModules || [] splitGuideModule(getGuideModule(nodes))?.variableModules || []
).map((item) => ({ ).map((item) => ({
...item, ...item,
valueType: WorkflowIOValueTypeEnum.string // 暂时都是字符串 valueType: WorkflowIOValueTypeEnum.any
})); }));
const systemVariables = getSystemVariables(t); const systemVariables = getSystemVariables(t);