Skip to content

Commit fe22245

Browse files
committed
Defaults to gemini-flash-latest
1 parent b1d43dd commit fe22245

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ OPENAI_API_BASE="https://my-super-proxy.vercel.app/v1"
114114
Requests use the specified [model] if its name starts with "gemini-", "gemma-", "learnlm-",
115115
or "models/". Otherwise, these defaults apply:
116116

117-
- `chat/completions`: `gemini-2.5-flash`
117+
- `chat/completions`: `gemini-flash-latest`
118118
- `embeddings`: `gemini-embedding-001`
119119

120120
[model]: https://ai.google.dev/gemini-api/docs/models#model-variations

src/worker.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async function handleEmbeddings (req, apiKey) {
142142
return new Response(body, fixCors(response));
143143
}
144144

145-
const DEFAULT_MODEL = "gemini-2.5-flash";
145+
const DEFAULT_MODEL = "gemini-flash-latest";
146146
async function handleCompletions (req, apiKey) {
147147
let model;
148148
switch (true) {

0 commit comments

Comments
 (0)