Add Claude as an alternative provider for idea_generator#1
Open
christindbose wants to merge 1 commit intoVerticalResearchGroup:mainfrom
Open
Add Claude as an alternative provider for idea_generator#1christindbose wants to merge 1 commit intoVerticalResearchGroup:mainfrom
christindbose wants to merge 1 commit intoVerticalResearchGroup:mainfrom
Conversation
Introduce a --provider flag (gemini, claude) so the Idea Generator can drive the Originator with either Google Gemini or Anthropic Claude. Gemini remains the default, preserving existing behavior. Key changes: - Factor generation into generate_with_gemini / generate_with_claude helpers; imports are lazy so users only need the SDK for the provider they select. - Claude uses the Anthropic SDK's native PDF document content block (base64 inline), avoiding the upload-and-poll flow Gemini requires. - Add --model flag to override the default model name per provider. - DEFAULT_MODELS maps "gemini" → gemini-2.5-pro and "claude" → claude-opus-4-5-20251101 (matches main.py). - ANTHROPIC_API_KEY is required when --provider claude is used; GOOGLE_API_KEY is still required for the Gemini path. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Introduce a --provider flag (gemini, claude) so the Idea Generator can drive the Originator with either Google Gemini or Anthropic Claude. Gemini remains the default, preserving existing behavior.
Key changes: