Skip to content

Commit

Permalink
fix: 用AUTO作为gemini工具默认选项
Browse files Browse the repository at this point in the history
  • Loading branch information
ikechan8370 committed Nov 19, 2024
1 parent f6e054b commit dc75175
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/CustomGoogleGeminiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,12 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
// codeExecution: {}
}
]
// 笑死人的效果
// body.tool_config = {
// function_calling_config: {
// mode: 'ANY'
// }
// }
// ANY要笑死人的效果
body.tool_config = {
function_calling_config: {
mode: 'AUTO'
}
}
}
if (opt.image) {
delete body.tools
Expand Down

0 comments on commit dc75175

Please sign in to comment.