OmniRoute/scripts/docs
Diego Rodrigues de Sa e Souza f3277f267a
feat(gemini-web): emulate OpenAI tool calling via the webTools prompt shim (#7286) (#7727)
Level 2 of the staged approach in #7286: wire the existing webTools.ts
prompt-emulation shim (already proven across 11 other web-cookie
executors) into gemini-web.ts. The client's tools[] array is now
serialized into the prompt typed into the Gemini web UI, and
<tool>{...}</tool> blocks in the response are parsed back into OpenAI
tool_calls -- including for streaming requests, replayed as a single
terminal SSE chunk since gemini-web buffers the whole response by
construction. Malformed tool JSON degrades to ordinary chat content,
never an error, matching the existing behavior of the other 11
executors. The no-tools code path is unchanged (regression guard).

Also Level 1: adds a "Tool calling" column (native/emulated/none) to
docs/reference/PROVIDER_REFERENCE.md for providers with confirmed
ground truth (the 11 already-wired web-cookie executors + gemini-web
-> emulated, claude-web -> none pending its own Level 3 decision).

Level 3 (claude-web) and Level 4 (supportsTools capability flag) are
explicitly out of scope -- claude-web/payload.ts is untouched.
2026-07-19 14:51:06 -03:00
..
add-frontmatter.mjs fix(security): close remaining CodeQL alerts + document mandatory patterns 2026-05-14 11:12:14 -03:00
fix-internal-links.mjs fix(security): close remaining CodeQL alerts + document mandatory patterns 2026-05-14 11:12:14 -03:00
gen-openapi-module.mjs Release v3.8.35 (#4743) 2026-06-23 17:06:18 -03:00
gen-provider-reference.ts feat(gemini-web): emulate OpenAI tool calling via the webTools prompt shim (#7286) (#7727) 2026-07-19 14:51:06 -03:00
move-i18n-mirrors.mjs fix(api): sanitize error responses in management routes 2026-05-14 15:23:46 -03:00
render-diagrams.mjs chore(docs): add npm run docs:render-diagrams and export SVGs 2026-05-13 13:54:09 -03:00
sync-wiki.mjs Release v3.8.40 2026-06-29 08:40:06 -03:00