Roo-Code/src/api/providers
Daniel afe51e0fe8
feat: migrate Gemini and Vertex providers to AI SDK (#11180)
* feat: migrate Gemini and Vertex providers to AI SDK

- Migrate GeminiHandler from @google/genai to @ai-sdk/google
- Create standalone VertexHandler using @ai-sdk/google-vertex
- Use shared AI SDK utilities (streamText, generateText, convertToAiSdkMessages)
- Support thinkingConfig via providerOptions.google.thinkingConfig
- Support Google Search and URL Context grounding tools
- Preserve cost calculation with tiered pricing
- Remove gemini-format.ts (AI SDK handles message conversion)

EXT-643

* fix: remove unused import and implement allowedFunctionNames tool filtering

- Remove unused handleAiSdkError import from gemini.ts
- Implement tool filtering based on allowedFunctionNames in both
  GeminiHandler and VertexHandler createMessage methods
- Filter tools before converting to AI SDK format to restrict
  model access to only allowed functions
2026-02-04 17:31:48 -07:00
..
__tests__ feat: migrate Gemini and Vertex providers to AI SDK (#11180) 2026-02-04 17:31:48 -07:00
fetchers feat: use custom Base URL for OpenRouter model list fetch (#11154) 2026-02-02 23:03:47 -05:00
utils chore: disable edit_file tool for Gemini/Vertex (#10594) 2026-01-09 21:24:15 -05:00
anthropic-vertex.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
anthropic.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
base-openai-compatible-provider.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00
base-provider.ts fix: add additionalProperties: false to MCP tool schemas for OpenAI Responses API (#10472) 2026-01-06 00:26:17 -05:00
baseten.ts (feat): Add Baseten Provider (#9461) 2025-11-21 17:49:15 -05:00
bedrock.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
cerebras.ts feat(api): migrate Fireworks provider to AI SDK (#11118) 2026-01-30 14:52:49 -05:00
chutes.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
constants.ts feat: add User-Agent header to API providers (#5492) 2025-07-08 23:19:56 -04:00
deepinfra.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00
deepseek.ts feat(api): migrate Fireworks provider to AI SDK (#11118) 2026-01-30 14:52:49 -05:00
doubao.ts Support new LLM provider: Doubao (#6345) 2025-07-30 16:54:16 -04:00
fake-ai.ts Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
featherless.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
fireworks.ts feat(api): migrate Fireworks provider to AI SDK (#11118) 2026-01-30 14:52:49 -05:00
gemini.ts feat: migrate Gemini and Vertex providers to AI SDK (#11180) 2026-02-04 17:31:48 -07:00
groq.ts feat(api): migrate Fireworks provider to AI SDK (#11118) 2026-01-30 14:52:49 -05:00
huggingface.ts feat: migrate HuggingFace provider to AI SDK (#11156) 2026-02-03 11:59:26 -05:00
index.ts feat: Add OpenAI-compatible base provider and migrate Moonshot to AI SDK (#11063) 2026-01-29 01:29:33 -05:00
io-intelligence.ts Get the model id property for a given provider (#8009) 2025-09-17 15:24:27 -07:00
lite-llm.ts Fix LiteLLM tool ID validation errors for Bedrock proxy (#10990) 2026-01-26 23:54:48 -05:00
lm-studio.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00
minimax.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
mistral.ts feat(api): migrate Mistral provider to AI SDK (#11089) 2026-02-02 10:45:51 -05:00
moonshot.ts feat: Add OpenAI-compatible base provider and migrate Moonshot to AI SDK (#11063) 2026-01-29 01:29:33 -05:00
native-ollama.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
openai-codex.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00
openai-compatible.ts feat(api): migrate Fireworks provider to AI SDK (#11118) 2026-01-30 14:52:49 -05:00
openai-native.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00
openai.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00
openrouter.ts chore: clean up XML legacy code and native-only comments (#10900) 2026-01-22 15:56:11 -05:00
qwen-code.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00
requesty.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
roo.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
router-provider.ts chore: remove XML tool calling support (#10841) 2026-01-20 20:25:08 -05:00
sambanova.ts feat: migrate SambaNova provider to AI SDK (#11153) 2026-02-02 23:02:32 -05:00
unbound.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00
vercel-ai-gateway.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00
vertex.ts feat: migrate Gemini and Vertex providers to AI SDK (#11180) 2026-02-04 17:31:48 -07:00
vscode-lm.ts Revert "feat(vscode-lm): add image support for VS Code LM API provider" (#11068) 2026-01-29 01:41:20 -05:00
xai.ts feat: migrate xAI provider to use dedicated @ai-sdk/xai package (#11158) 2026-02-02 23:56:07 -05:00
zai.ts Enable parallel tool calls by default (#11031) 2026-01-29 01:29:15 -05:00