fix: bot一直骂我

This commit is contained in:
ikechan8370 2024-11-19 10:55:45 +08:00
parent df715e22a2
commit f6e054b7ef

View file

@ -172,11 +172,12 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
// codeExecution: {}
}
]
body.tool_config = {
function_calling_config: {
mode: 'ANY'
}
}
// 笑死人的效果
// body.tool_config = {
// function_calling_config: {
// mode: 'ANY'
// }
// }
}
if (opt.image) {
delete body.tools