Skip to content

Conversation

Evgen1000end
Copy link
Contributor

@Evgen1000end Evgen1000end commented Jul 6, 2025

  • Remove deprecated experimental models:
    • gemini-1.5-flash-8b-exp-0827
    • gemini-1.5-flash-exp-0827
    • gemini-1.5-pro-exp-0827
  • Add gemini-2.5-flash-lite-preview-06-17 with latest pricing

Description

This PR addresses a critical issue where users selecting certain Gemini models would encounter API errors because these experimental models have been discontinued by Google.

Problem:
Three experimental Gemini models (gemini-1.5-flash-8b-exp-0827, gemini-1.5-flash-exp-0827, gemini-1.5-pro-exp-0827) are no longer available via Google's API, causing 404/400 errors when users attempt to use them.

Solution:

  • Remove defunct models: Eliminates the discontinued experimental models to prevent API errors
  • Add new model: Includes gemini-2.5-flash-lite-preview-06-17, Google's newest cost-efficient model with verified pricing ($0.10 input / $0.40 output per 1M tokens)

Test Procedure

Testing approach:

  1. Verified model availability: Confirmed via Google's official Gemini API documentation that the removed models are no longer listed as available
  2. Validated pricing: Cross-referenced new model pricing with official Google AI pricing page
  3. Code review: Ensured TypeScript syntax and object structure remain valid
  4. Configuration integrity: Verified no syntax errors in the models object

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

image

Additional Notes

References:


Important

Update Gemini models by removing deprecated ones and adding gemini-2.5-flash-lite-preview-06-17 with pricing.

  • Behavior:
    • Remove deprecated models gemini-1.5-flash-8b-exp-0827, gemini-1.5-flash-exp-0827, gemini-1.5-pro-exp-0827 from geminiModels in api.ts.
    • Add gemini-2.5-flash-lite-preview-06-17 to geminiModels in api.ts with pricing details.
  • Pricing:
    • New model gemini-2.5-flash-lite-preview-06-17 priced at $0.10 input / $0.40 output per 1M tokens.

This description was created by Ellipsis for bb8087d. You can customize this summary. It will automatically update as commits are pushed.

- Remove deprecated experimental models:
  - gemini-1.5-flash-8b-exp-0827
  - gemini-1.5-flash-exp-0827
  - gemini-1.5-pro-exp-0827
- Add gemini-2.5-flash-lite-preview-06-17 with latest pricing
Copy link

changeset-bot bot commented Jul 6, 2025

🦋 Changeset detected

Latest commit: bb8087d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
claude-dev Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@saoudrizwan saoudrizwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you so so much for the contribution 🙏

@saoudrizwan saoudrizwan merged commit f6273e0 into cline:main Jul 26, 2025
4 checks passed
li-yechao pushed a commit to li-yechao/cline that referenced this pull request Jul 27, 2025
…cline#4681)

- Remove deprecated experimental models:
  - gemini-1.5-flash-8b-exp-0827
  - gemini-1.5-flash-exp-0827
  - gemini-1.5-pro-exp-0827
- Add gemini-2.5-flash-lite-preview-06-17 with latest pricing
dtrugman pushed a commit to dtrugman/cline that referenced this pull request Aug 24, 2025
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.

2 participants