mirror of
https://github.com/f/git-rewrite-commits.git
synced 2026-04-27 06:35:49 +03:00
[PR #28] feat: add Google Gemini provider support #27
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-rewrite-commits#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/f/git-rewrite-commits/pull/28
State: open
Merged: No
What
Adds Google Gemini as a fourth AI provider alongside OpenAI, Ollama, and
Claude Code. Default model is
gemini-2.5-flash-lite.Changes
New provider
src/providers/gemini.ts—GeminiProviderusing@google/generative-aiwith
temperature: 0.3andmaxOutputTokens: 200Wiring
src/providers/types.ts— added'gemini'toProviderOptions.providerunion type
src/providers/index.ts— factory routes toGeminiProvider, readsGEMINI_API_KEYenv varsrc/index.ts— added'gemini'toRewriteOptions.providerunion type,added
gemini-2.5-flash-liteto default model resolution chain, fixedexecCommandto usestdio: ['pipe', 'pipe', 'pipe']CLI
src/cli.ts— updated--providerdescription,--api-keydescription,--modeldescription; added Gemini API key validation error, informationalmessage, help text, and usage examples
Other
.env.example— addedGEMINI_API_KEYentrypackage.json— added@google/generative-ai ^0.24.1dependencyUsage