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
93e302b7
authored
Nov 28, 2024
by
Archer
Committed by
GitHub
Nov 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update faq.md (#3269)
parent
78f52a78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
docSite/content/zh-cn/docs/development/faq.md
+6
-3
No files found.
docSite/content/zh-cn/docs/development/faq.md
View file @
93e302b7
...
@@ -132,7 +132,11 @@ OneAPI 的 API Key 配置错误,需要修改`OPENAI_API_KEY`环境变量,并
...
@@ -132,7 +132,11 @@ OneAPI 的 API Key 配置错误,需要修改`OPENAI_API_KEY`环境变量,并
4.
8.10 版本新增了错误日志,报错时,会在日志中打印出实际发送的 Body 参数,可以复制该参数后,通过 curl 向 oneapi 发起请求测试。
4.
8.10 版本新增了错误日志,报错时,会在日志中打印出实际发送的 Body 参数,可以复制该参数后,通过 curl 向 oneapi 发起请求测试。
由于 oneapi 在 stream 模式下,无法正确捕获错误,可以设置成
`stream=false`
后进行测试。
由于 oneapi 在 stream 模式下,无法正确捕获错误,可以设置成
`stream=false`
后进行测试。可能的问题:
1.
国内模型命中风控
2.
不支持的模型参数:只保留 messages 和必要参数来测试,删除其他参数测试。
3.
参数不符合模型要求:例如有的模型 temperature 不支持 0,有些不支持两位小数。max_tokens 超出,上下文超长等。
### 如何测试模型是否支持工具调用
### 如何测试模型是否支持工具调用
...
@@ -265,4 +269,4 @@ curl --location --request POST 'https://oneapi.xxxx/v1/chat/completions' \
...
@@ -265,4 +269,4 @@ curl --location --request POST 'https://oneapi.xxxx/v1/chat/completions' \
],
],
"tool_choice": "auto"
"tool_choice": "auto"
}'
}'
```
```
\ 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