❇️ feat: Add Gemini 2.5 Default Models & Pricing (#9892)

* feat: Add Gemini 2.5 models support

* feat: Remove deprecated Gemini models
This commit is contained in:
linnil1 2025-09-30 09:23:28 +08:00 committed by GitHub
parent c19b8755a7
commit 0b2fde73e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 25 additions and 12 deletions

View file

@ -571,6 +571,9 @@ describe('getCacheMultiplier', () => {
describe('Google Model Tests', () => {
const googleModels = [
'gemini-2.5-pro',
'gemini-2.5-flash',
'gemini-2.5-flash-lite',
'gemini-2.5-pro-preview-05-06',
'gemini-2.5-flash-preview-04-17',
'gemini-2.5-exp',
@ -611,6 +614,9 @@ describe('Google Model Tests', () => {
it('should map to the correct model keys', () => {
const expected = {
'gemini-2.5-pro': 'gemini-2.5-pro',
'gemini-2.5-flash': 'gemini-2.5-flash',
'gemini-2.5-flash-lite': 'gemini-2.5-flash-lite',
'gemini-2.5-pro-preview-05-06': 'gemini-2.5-pro',
'gemini-2.5-flash-preview-04-17': 'gemini-2.5-flash',
'gemini-2.5-exp': 'gemini-2.5',