mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 死循环
This commit is contained in:
parent
3b58397a16
commit
95e776b334
2 changed files with 3 additions and 1 deletions
|
|
@ -229,6 +229,8 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
|
|||
if (lastFuncName && lastFuncName?.find(name => mustSendNextTurn.includes(name))) {
|
||||
mode = 'ANY'
|
||||
}
|
||||
// 防止死循环。
|
||||
delete opt.toolMode
|
||||
body.tool_config = {
|
||||
function_calling_config: {
|
||||
mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue