Open
Conversation
| @@ -1,9 +1,8 @@ | |||
| anthropic>=0.39.0 | |||
| google-generativeai>=0.8.0 | |||
There was a problem hiding this comment.
🔴 pyproject.toml still declares anthropic dependency instead of google-generativeai
The migration from Anthropic to Gemini updated requirements.txt (line 1) but did not update pyproject.toml:27, which still declares "anthropic>=0.39.0" as a dependency. Since pyproject.toml is the authoritative dependency specification used by pip install ., pip install -e ., and package builds, anyone installing the package via the standard Python packaging flow will get anthropic installed but not google-generativeai. This causes an immediate ModuleNotFoundError at runtime when import google.generativeai as genai executes in fabricate/generator.py:10.
Prompt for agents
In pyproject.toml, line 27, change the dependency from "anthropic>=0.39.0" to "google-generativeai>=0.8.0" to match the requirements.txt update and the actual import used in fabricate/generator.py.
Was this helpful? React with 👍 or 👎 to provide feedback.
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.
Overview
This pull request migrates Fabricate from Anthropic's Claude to Google's Gemini 3.1 Pro for code generation while keeping all other functionality identical.
Changes Made
1. Dependencies (
requirements.txt)anthropic>=0.39.0google-generativeai>=0.8.02. Code Generator (
fabricate/generator.py)import anthropicwithimport google.generativeai as genaiself.client = anthropic.Anthropic(api_key=api_key)genai.configure(api_key=api_key)andself.client = genai.GenerativeModel(model)_call_claude()to_call_gemini()generate_content()withGenerationConfiggemini-3.1-pro-preview3. Configuration (
fabricate/config.py)anthropic_api_key→gemini_api_key4. CLI (
fabricate/cli.py)--anthropic-key→--gemini-key(short form-g)FABRICATE_ANTHROPIC_API_KEY→FABRICATE_GEMINI_API_KEYanthropic_api_keytogemini_api_key5. Persona Fabricator (
fabricate/persona.py)anthropic_api_key→gemini_api_keyinPersonaFabricator.__init__()run_fabrication()function signature to usegemini_api_keyBehavior
✅ Repository concept generation
✅ Initial commit generation
✅ Subsequent commit generation
✅ Commit history generation and backdating
✅ GitHub repository creation and pushing
✅ All fallback mechanisms
✅ Output formatting and JSON handling
Testing
Users should set the environment variable and run:
Or use the command-line option:
Notes
modelparameter (defaults togemini-3.1-pro-preview)