Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/sdk/ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@merit-systems/echo-typescript-sdk",
"version": "1.0.23",
"version": "1.0.24",
"description": "TypeScript SDK for Echo platform",
"type": "module",
"main": "./dist/index.cjs",
Expand Down
14 changes: 0 additions & 14 deletions packages/sdk/ts/src/supported-models/chat/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ export type GeminiModel =
| 'gemini-2.0-flash-lite-001'
| 'gemini-2.0-flash-lite-preview'
| 'gemini-2.0-flash-lite-preview-02-05'
| 'gemini-2.0-flash-preview-image-generation'
| 'gemini-2.0-flash-thinking-exp'
| 'gemini-2.0-flash-thinking-exp-01-21'
| 'gemini-2.0-flash-thinking-exp-1219'
| 'gemini-2.5-flash'
| 'gemini-2.5-flash-image'
| 'gemini-2.5-flash-image-preview'
| 'gemini-2.5-flash-lite'
| 'gemini-2.5-flash-lite-preview-06-17'
| 'gemini-2.5-flash-lite-preview-09-2025'
Expand Down Expand Up @@ -78,12 +76,6 @@ export const GeminiModels: SupportedModel[] = [
output_cost_per_token: 3e-7,
provider: 'Gemini',
},
{
model_id: 'gemini-2.0-flash-preview-image-generation',
input_cost_per_token: 1e-7,
output_cost_per_token: 4e-7,
provider: 'Gemini',
},
{
model_id: 'gemini-2.0-flash-thinking-exp',
input_cost_per_token: 1e-7,
Expand Down Expand Up @@ -114,12 +106,6 @@ export const GeminiModels: SupportedModel[] = [
output_cost_per_token: 0.0000025,
provider: 'Gemini',
},
{
model_id: 'gemini-2.5-flash-image-preview',
input_cost_per_token: 3e-7,
output_cost_per_token: 0.0000025,
provider: 'Gemini',
},
{
model_id: 'gemini-2.5-flash-lite',
input_cost_per_token: 1e-7,
Expand Down
1 change: 0 additions & 1 deletion packages/tests/provider-smoke/gemini-generate-text.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
beforeAll(assertEnv);

export const BLACKLISTED_MODELS = new Set([
'gemini-2.0-flash-preview-image-generation',
'veo-3.0-fast-generate',
'gemini-2.0-flash-exp',
'gemini-2.0-flash-thinking-exp-1219',
Expand Down
2 changes: 1 addition & 1 deletion templates/next-image/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "echo-next-image-template",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion templates/next-image/src/app/api/edit-image/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function handleGoogleEdit(
];

const result = await generateText({
model: google('gemini-2.5-flash-image-preview'),
model: google('gemini-2.5-flash-image'),
prompt: [
{
role: 'user',
Expand Down
2 changes: 1 addition & 1 deletion templates/next-image/src/app/api/generate-image/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ERROR_MESSAGES } from '@/lib/constants';
export async function handleGoogleGenerate(prompt: string): Promise<Response> {
try {
const result = await generateText({
model: google('gemini-2.5-flash-image-preview'),
model: google('gemini-2.5-flash-image'),
Copy link
Contributor

Choose a reason for hiding this comment

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

if this is deprecated, why is it still working?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if this is deprecated, why is it still working?

No idea if it's still working but according the reference in the issue, it was meant to be retired on the 31st of October.

https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-0-flash

prompt,
});

Expand Down
Loading