fix: 用AUTO作为gemini工具默认选项

This commit is contained in:
ikechan8370 2024-11-19 11:08:33 +08:00
parent f6e054b7ef
commit dc751750f4

View file

@ -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