Skip to content

Commit e667fe9

Browse files
committed
Update default model to gemini-2.5-flash
1 parent 4d35a12 commit e667fe9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
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.0-flash`
117+
- `chat/completions`: `gemini-2.5-flash`
118118
- `embeddings`: `text-embedding-004`
119119

120120
[model]: https://ai.google.dev/gemini-api/docs/models/gemini
@@ -123,7 +123,7 @@ or "models/". Otherwise, these defaults apply:
123123
## Built-in tools
124124

125125
To use the **web search** tool, append ":search" to the model name
126-
(e.g., "gemini-2.0-flash:search").
126+
(e.g., "gemini-2.5-flash:search").
127127

128128
Note: The `annotations` message property is not implemented.
129129

src/worker.mjs

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

142-
const DEFAULT_MODEL = "gemini-2.0-flash";
142+
const DEFAULT_MODEL = "gemini-2.5-flash";
143143
async function handleCompletions (req, apiKey) {
144144
let model = DEFAULT_MODEL;
145145
switch (true) {

0 commit comments

Comments
 (0)