Skip to content

Add Claude as an alternative provider for idea_generator#1

Open
christindbose wants to merge 1 commit intoVerticalResearchGroup:mainfrom
christindbose:claude-idea-generator
Open

Add Claude as an alternative provider for idea_generator#1
christindbose wants to merge 1 commit intoVerticalResearchGroup:mainfrom
christindbose:claude-idea-generator

Conversation

@christindbose
Copy link
Copy Markdown

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.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant