diff --git a/src/libs/agent-runtime/google/index.ts b/src/libs/agent-runtime/google/index.ts index 45c2d42b01a0..24fc6852b878 100644 --- a/src/libs/agent-runtime/google/index.ts +++ b/src/libs/agent-runtime/google/index.ts @@ -91,12 +91,7 @@ export class LobeGoogleAI implements LobeRuntimeAI { .generateContentStream({ contents, systemInstruction: payload.system as string, - tools: (() => { - if (!payload.tools && model.startsWith('gemini-2.0')) { - return [{ googleSearch: {} } as GoogleFunctionCallTool]; - } - return this.buildGoogleTools(payload.tools); - })(), + tools: this.buildGoogleTools(payload.tools), }); const googleStream = convertIterableToStream(geminiStreamResult.stream);