Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
5fd520c7
authored
Feb 19, 2025
by
Archer
Committed by
GitHub
Feb 19, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: gemini config (#3828)
* doc * doc * perf: gemini config
parent
09205e46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
15 deletions
+80
-15
docSite/content/zh-cn/docs/development/upgrading/4822.md
+31
-13
packages/service/core/ai/config/provider/Gemini.json
+49
-2
No files found.
docSite/content/zh-cn/docs/development/upgrading/4822.md
View file @
5fd520c7
...
@@ -7,17 +7,34 @@ toc: true
...
@@ -7,17 +7,34 @@ toc: true
weight
:
802
weight
:
802
---
---
## 🌟更新指南
## 完整更新内容
### 1. 做好数据库备份
1.
新增 - AI 对话节点解析
<think></think>
标签内容,便于各类模型进行思考链输出。
### 2. 更新镜像:
2.
优化 - 模型未配置时提示,减少冲突提示。
3.
优化 - 使用记录代码。
-
更新 fastgpt 镜像 tag: v4.8.22-alpha
4.
修复 - 思考内容未进入到输出 Tokens.
-
更新 fastgpt-pro 商业版镜像 tag: v4.8.22-alpha
5.
修复 - 思考链流输出时,有时与正文顺序偏差。
-
Sandbox 镜像无需更新
6.
修复 - API 调用工作流,如果传递的图片不支持 Head 检测时,图片会被过滤。已增加该类错误检测,避免被错误过滤。
7.
修复 - 模板市场部分模板错误。
8.
修复 - 免登录窗口无法正常判断语言识别是否开启。
## 🚀 新增内容
9.
修复 - 对话日志导出,未兼容 sub path。
10.
修复 - list 接口在联查 member 时,存在空指针可能性。
1.
AI 对话节点解析
`<think></think>`
标签内容作为思考链,便于各类模型进行思考链输出。需主动开启模型输出思考。
11.
修复 - 工作流基础节点无法升级。
2.
ppio 模型提供商 by @saikidev
## ⚙️ 优化
1.
模型未配置时提示,减少冲突提示。
2.
使用记录代码。
## 🐛 修复
1.
思考内容未进入到输出 Tokens.
2.
思考链流输出时,有时与正文顺序偏差。
3.
API 调用工作流,如果传递的图片不支持 Head 检测时,图片会被过滤。已增加该类错误检测,避免被错误过滤。
4.
模板市场部分模板错误。
5.
免登录窗口无法正常判断语言识别是否开启。
6.
对话日志导出,未兼容 sub path。
7.
切换团队时未刷新成员列表
8.
list 接口在联查 member 时,存在空指针可能性。
9.
工作流基础节点无法升级。
\ No newline at end of file
packages/service/core/ai/config/provider/Gemini.json
View file @
5fd520c7
...
@@ -2,6 +2,54 @@
...
@@ -2,6 +2,54 @@
"provider"
:
"Gemini"
,
"provider"
:
"Gemini"
,
"list"
:
[
"list"
:
[
{
{
"model"
:
"gemini-2.0-flash"
,
"name"
:
"gemini-2.0-flash"
,
"maxContext"
:
1000000
,
"maxResponse"
:
8000
,
"quoteMaxToken"
:
60000
,
"maxTemperature"
:
1
,
"vision"
:
true
,
"toolChoice"
:
true
,
"functionCall"
:
false
,
"defaultSystemChatPrompt"
:
""
,
"datasetProcess"
:
true
,
"usedInClassify"
:
true
,
"customCQPrompt"
:
""
,
"usedInExtractFields"
:
true
,
"usedInQueryExtension"
:
true
,
"customExtractPrompt"
:
""
,
"usedInToolCall"
:
true
,
"defaultConfig"
:
{},
"fieldMap"
:
{},
"type"
:
"llm"
,
"showTopP"
:
true
,
"showStopSign"
:
true
},
{
"model"
:
"gemini-2.0-pro-exp"
,
"name"
:
"gemini-2.0-pro-exp"
,
"maxContext"
:
2000000
,
"maxResponse"
:
8000
,
"quoteMaxToken"
:
100000
,
"maxTemperature"
:
1
,
"vision"
:
true
,
"toolChoice"
:
true
,
"functionCall"
:
false
,
"defaultSystemChatPrompt"
:
""
,
"datasetProcess"
:
true
,
"usedInClassify"
:
true
,
"customCQPrompt"
:
""
,
"usedInExtractFields"
:
true
,
"usedInQueryExtension"
:
true
,
"customExtractPrompt"
:
""
,
"usedInToolCall"
:
true
,
"defaultConfig"
:
{},
"fieldMap"
:
{},
"type"
:
"llm"
,
"showTopP"
:
true
,
"showStopSign"
:
true
},
{
"model"
:
"gemini-1.5-flash"
,
"model"
:
"gemini-1.5-flash"
,
"name"
:
"gemini-1.5-flash"
,
"name"
:
"gemini-1.5-flash"
,
"maxContext"
:
1000000
,
"maxContext"
:
1000000
,
...
@@ -153,4 +201,4 @@
...
@@ -153,4 +201,4 @@
"type"
:
"embedding"
"type"
:
"embedding"
}
}
]
]
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment