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: {} // codeExecution: {}
} }
] ]
body.tool_config = { // 笑死人的效果
function_calling_config: { // body.tool_config = {
mode: 'ANY' // function_calling_config: {
} // mode: 'ANY'
} // }
// }
} }
if (opt.image) { if (opt.image) {
delete body.tools delete body.tools