Skip to content

Commit bef26fb

Browse files
committed
fix: update model constants
1 parent d1ddddc commit bef26fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ asyncio.run(main())
260260

261261
You can choose a specified language model version by passing `model` argument to `GeminiClient.generate_content` or `GeminiClient.start_chat`. The default value is `unspecified`.
262262

263-
Currently available models (as of Dec 21, 2024):
263+
Currently available models (as of Feb 1, 2025):
264264

265-
- `unspecified` - Default model (Gemini 1.5 Pro if account has Gemini Advanced subscription, otherwise Gemini 1.5 Flash)
265+
- `unspecified` - Default model (Gemini 2.0 Flash if account does NOT have Gemini Advanced subscription)
266266
- `gemini-1.5-flash` - Gemini 1.5 Flash
267267
- `gemini-1.5-pro` - Gemini 1.5 Pro **(requires Gemini Advanced account)**
268268
- `gemini-1.5-pro-research` - Gemini 1.5 Pro with Deep Research **(requires Gemini Advanced account)**

src/gemini_webapi/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Model(Enum):
2727
UNSPECIFIED = ("unspecified", {}, False)
2828
G_1_5_FLASH = (
2929
"gemini-1.5-flash",
30-
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"7daceb7ef88130f5"]'},
30+
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"418ab5ea040b5c43"]'},
3131
False,
3232
)
3333
G_1_5_PRO = (
@@ -42,7 +42,7 @@ class Model(Enum):
4242
)
4343
G_2_0_FLASH_EXP = (
4444
"gemini-2.0-flash-exp",
45-
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"948b866104ccf484"]'},
45+
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"f299729663a2343f"]'},
4646
False,
4747
)
4848
G_2_0_EXP_ADVANCED = (

0 commit comments

Comments
 (0)