Skip to content

Commit

Permalink
perf: global variable any type (#1387)
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu authored May 7, 2024
1 parent fef1a17 commit caa0755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions docSite/content/docs/development/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ images: []
4. 无法解决时,可以找找[Issue](https://github.com/labring/FastGPT/issues),或新提 Issue,私有部署错误,务必提供详细的日志,否则很难排查。




## 二、通用问题

### 能否纯本地运行
Expand Down Expand Up @@ -47,7 +45,7 @@ images: []

### 模型响应为空(core.chat.Chat API is error or undefined)

1. 检查 key 问题。
1. 检查 key 问题。curl 请求看是否正常。务必用 stream=true 模式。并且 maxToken 等相关参数尽量一致。
2. 如果是国内模型,可能是命中风控了。
3. 查看模型请求日志,检查出入参数是否异常。

Expand Down
2 changes: 1 addition & 1 deletion projects/app/src/web/core/workflow/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export const getWorkflowGlobalVariables = (
splitGuideModule(getGuideModule(nodes))?.variableModules || []
).map((item) => ({
...item,
valueType: WorkflowIOValueTypeEnum.string // 暂时都是字符串
valueType: WorkflowIOValueTypeEnum.any
}));

const systemVariables = getSystemVariables(t);
Expand Down

0 comments on commit caa0755

Please sign in to comment.