Uh oh!
There was an error while loading. Please reload this page.
Feat: Add multi-provider LLM support (OpenAI + Gemini) - #43
Conversation
Add support for both OpenAI and Gemini providers with unified interface. Includes structured output support and improved error handling.
dgallitelli
commented
Feb 9, 2026
Great work on this multi-provider abstraction! 🎉 This pattern would make it straightforward to add additional cloud providers. I've opened two related feature requests that could build on this PR:
Both would follow the same For Bedrock:
For SageMaker:
Would you be open to expanding this PR to include AWS providers, or would separate PRs be preferred? Happy to contribute the Bedrock/SageMaker implementations if helpful. |
KylinMountain
commented
Jul 3, 2026
Thanks @dzakwanalifi! Multi-provider support (Gemini included) now ships via LiteLLM (#168, merged) — Gemini works with a |
Read PIFS embedding model, dimensions, provider, and timeout from the persisted PIFS config when constructing CLI workspaces. Also print ask final output when streaming tool events.
Problem
PageIndex currently only supports OpenAI models, limiting user choice and potentially increasing costs.
Solution
Add unified interface supporting both OpenAI GPT-4 and Gemini 2.5 Flash models with structured output capabilities.
Key Changes
utils.pyconfig.yamlpage_index.pyCode Changes
utils.py: AddedLLMProviderclass with unified interfaceconfig.yaml: Added provider configuration optionpage_index.py: Enhanced error handling and Gemini integrationUse Case
Users can now choose between providers:
This provides flexibility for different cost/performance requirements while maintaining full compatibility.