diff --git a/providers.js b/providers.js index 2ad510d..85c6fe6 100644 --- a/providers.js +++ b/providers.js @@ -233,7 +233,7 @@ export async function streamGoogle({ apiKey, body, signal, onDelta, isRunning }) const payload = { contents: mapToGoogleContents(body.messages), ...(Object.keys(generationConfig).length && { generationConfig }), - ...((body.model ?? '').endsWith(':online') && { tools: [{ google_search: {} }] }), + ...((body.model ?? '').endsWith(':online') && { tools: [{ google_search: {} }, { url_context: {} }] }), } const resp = await fetch(