-
Notifications
You must be signed in to change notification settings - Fork 2
Add:Added Gemini AI Support #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ajaymalik14
wants to merge
7
commits into
GravityKit:develop
Choose a base branch
from
ajaymalik14:main
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b6dcbfb
Add:Added Gemini AI Support
293f392
Fix: Corrected gemini models and pricing
eab24c8
Fix: Gemini Temp setting fixed
c668e17
Added coderabbit suggestion
b0a31f3
Fixed parts issue
4a0e18e
Fixed lint error
e6dc7d7
Add : Google Translator + Parallel Processing + Updated Gemini Models
ajaymalik14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "models": { | ||
| "gemini-2.5-pro": { | ||
| "prompt": 0.0005, | ||
| "completion": 0.0015 | ||
| }, | ||
| "gemini-2.5-flash": { | ||
| "prompt": 0.000175, | ||
| "completion": 0.000525 | ||
| } | ||
| }, | ||
| "fallback": { | ||
| "prompt": 0.0005, | ||
| "completion": 0.0015 | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Gemini API pricing per 1M tokens 2026 official: gemini-2.5-pro, gemini-2.5-flash, gemini-3.1-pro-preview, gemini-flash-latest, gemini-3.1-flash-lite-preview💡 Result:
Gemini API Paid Tier pricing per 1M tokens (USD) as of April 2026 from official Google AI for Developers documentation (standard tier, text/image/video input unless noted; output includes thinking tokens; audio input higher where specified; Pro models tiered by prompt length <=200K / >200K tokens): - gemini-2.5-pro: Input $1.25 / $2.50, Output $10.00 / $15.00 - gemini-2.5-flash: Input $0.30 (text/image/video), $1.00 (audio); Output $2.50 - gemini-3.1-pro-preview: Input $2.00 / $4.00, Output $12.00 / $18.00 - gemini-flash-latest: Likely maps to latest stable Flash such as gemini-2.5-flash or gemini-3-flash-preview at Input $0.30-$0.50 / Output $2.50-$3.00 (exact alias pricing follows underlying model; no explicit separate rate found) - gemini-3.1-flash-lite-preview: Input $0.25 (text/image/video), $0.50 (audio); Output $1.50 Free tier available with limits (e.g., requests per day). Context caching and grounding extra. Batch/Priority tiers offer discounts/multipliers. Prices from ai.google.dev/gemini-api/docs/pricing (results 1,17+), Vertex AI docs (4,9,10), and consistent secondary confirmations (2,20,23,26,29). Vertex AI matches Developer API standard rates. "gemini-flash-latest" points to latest Flash release (e.g., 2.5 Flash per models docs), using 2.5 Flash rates conservatively as most cited stable.
Citations:
Pricing values are significantly below Google's published rates — cost estimates and
--max-costenforcement will be inaccurate.Per Google's official Gemini API pricing (April 2026), the per‑1K-token costs in this file are 2–10× lower than reality:
Since
GeminiProvider.calculateCost()and dry‑run estimation read directly from this config (and the README pricing tables mirror it), a user who sets--max-cost 5.00could be billed multiples of that on real runs. Note also that 2.5 Pro and 3.1 Pro have a long‑context (>200K tokens) tier at 2× — worth documenting if not modeling.📐 Corrected values (from official ai.google.dev/gemini-api/docs/pricing)
"models": { "gemini-2.5-pro": { - "prompt": 0.0005, - "completion": 0.0015 + "prompt": 0.00125, + "completion": 0.01 }, "gemini-2.5-flash": { - "prompt": 0.000175, - "completion": 0.000525 + "prompt": 0.0003, + "completion": 0.0025 }, "gemini-3.1-pro-preview": { - "prompt": 0.00125, - "completion": 0.005 + "prompt": 0.002, + "completion": 0.012 }, "gemini-flash-latest": { - "prompt": 0.000175, - "completion": 0.000525 + "prompt": 0.0003, + "completion": 0.0025 }, "gemini-3.1-flash-lite-preview": { - "prompt": 0.0000375, - "completion": 0.00015 + "prompt": 0.00025, + "completion": 0.0015 } }, "fallback": { - "prompt": 0.0005, - "completion": 0.0015 + "prompt": 0.00125, + "completion": 0.01 } }🤖 Prompt for AI Agents