feat: Add multi-provider support (GPT, Gemini, etc.) #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces multi-provider support, allowing the agents to work with other LLM providers (like OpenAI, Gemini, DeepSeek) in addition to Anthropic.
It implements an Adapter pattern (
provider_utils.py) that wraps OpenAI-compatible clients to match the Anthropic interface. Crucially, this change is fully backward compatible with Anthropic and existing.envconfigurations. If no provider is specified, it defaults to Anthropic, so existing setups will continue to work without modification.Changes
provider_utils.py: A utility module that handles client initialization and adapts OpenAI responses to the Anthropic format.v0-v4): Replaced directAnthropicclient initialization withget_client()andget_model()fromprovider_utils.requirements.txt: Addedopenaidependency..env.example: Added configuration examples for OpenAI, Gemini, and custom providers.Related Issue
Closes #12
Testing
Tested locally with Gemini API and verified that all the agents work correctly.