Skip to content

Commit

Permalink
fix: update model constants
Browse files Browse the repository at this point in the history
  • Loading branch information
HanaokaYuzu committed Feb 1, 2025
1 parent d1ddddc commit bef26fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ asyncio.run(main())

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`.

Currently available models (as of Dec 21, 2024):
Currently available models (as of Feb 1, 2025):

- `unspecified` - Default model (Gemini 1.5 Pro if account has Gemini Advanced subscription, otherwise Gemini 1.5 Flash)
- `unspecified` - Default model (Gemini 2.0 Flash if account does NOT have Gemini Advanced subscription)
- `gemini-1.5-flash` - Gemini 1.5 Flash
- `gemini-1.5-pro` - Gemini 1.5 Pro **(requires Gemini Advanced account)**
- `gemini-1.5-pro-research` - Gemini 1.5 Pro with Deep Research **(requires Gemini Advanced account)**
Expand Down
4 changes: 2 additions & 2 deletions src/gemini_webapi/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Model(Enum):
UNSPECIFIED = ("unspecified", {}, False)
G_1_5_FLASH = (
"gemini-1.5-flash",
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"7daceb7ef88130f5"]'},
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"418ab5ea040b5c43"]'},
False,
)
G_1_5_PRO = (
Expand All @@ -42,7 +42,7 @@ class Model(Enum):
)
G_2_0_FLASH_EXP = (
"gemini-2.0-flash-exp",
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"948b866104ccf484"]'},
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"f299729663a2343f"]'},
False,
)
G_2_0_EXP_ADVANCED = (
Expand Down

0 comments on commit bef26fb

Please sign in to comment.