mirror of
https://github.com/sune-org/us.proxy.sune.chat.git
synced 2026-08-07 07:25:46 +00:00
Feat: Add url_context tool to Google :online
Co-authored-by: gemini-3.6-flash <noreply@google.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user