Skip to content

Commit a7e8811

Browse files
vilpessoaclaude
andauthored
fix: reverte modelo para gemini-2.5-flash (cota gratuita maior) (#88)
gemini-2.5-flash tem 15 RPM e 1500 RPD no tier gratuito. gemini-2.0-flash era desnecessário — o 2.5-flash está disponível e tem melhor suporte a prompts complexos de DAX. Co-authored-by: Claude <noreply@anthropic.com>
1 parent f9a6d1b commit a7e8811

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

api/gemini.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default async function handler(req: Request): Promise<Response> {
4747
});
4848
}
4949

50-
const model = body.model ?? 'gemini-2.0-flash';
50+
const model = body.model ?? 'gemini-2.5-flash';
5151
const url = `https://generativelanguage.googleapis.com/v1beta/models/${model}:generateContent?key=${apiKey}`;
5252

5353
const contents = [

src/services/geminiService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export async function runAiAction(opts: RunAiActionOptions): Promise<string> {
5959
history: history ?? [],
6060
systemInstruction: promptText,
6161
actionContext: ACTION_CONTEXT[action],
62-
model: 'gemini-2.0-flash',
62+
model: 'gemini-2.5-flash',
6363
}),
6464
signal: controller.signal,
6565
});

0 commit comments

Comments
 (0)