gemini-webapi 1.8.0__py3-none-any.whl → 1.8.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gemini_webapi/constants.py +10 -2
- {gemini_webapi-1.8.0.dist-info → gemini_webapi-1.8.1.dist-info}/METADATA +3 -2
- {gemini_webapi-1.8.0.dist-info → gemini_webapi-1.8.1.dist-info}/RECORD +6 -6
- {gemini_webapi-1.8.0.dist-info → gemini_webapi-1.8.1.dist-info}/WHEEL +1 -1
- {gemini_webapi-1.8.0.dist-info → gemini_webapi-1.8.1.dist-info}/LICENSE +0 -0
- {gemini_webapi-1.8.0.dist-info → gemini_webapi-1.8.1.dist-info}/top_level.txt +0 -0
gemini_webapi/constants.py
CHANGED
|
@@ -24,19 +24,27 @@ class Headers(Enum):
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class Model(Enum):
|
|
27
|
-
UNSPECIFIED = ("unspecified", {})
|
|
27
|
+
UNSPECIFIED = ("unspecified", {}, False)
|
|
28
28
|
G_1_5_FLASH = (
|
|
29
29
|
"gemini-1.5-flash",
|
|
30
30
|
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"7daceb7ef88130f5"]'},
|
|
31
|
+
False,
|
|
31
32
|
)
|
|
32
33
|
G_2_0_FLASH_EXP = (
|
|
33
34
|
"gemini-2.0-flash-exp",
|
|
34
35
|
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"948b866104ccf484"]'},
|
|
36
|
+
False,
|
|
37
|
+
)
|
|
38
|
+
G_2_0_EXP_ADVANCED = (
|
|
39
|
+
"gemini-2.0-exp-advanced",
|
|
40
|
+
{"x-goog-ext-525001261-jspb": '[null,null,null,null,"b1e46a6037e6aa9f"]'},
|
|
41
|
+
True,
|
|
35
42
|
)
|
|
36
43
|
|
|
37
|
-
def __init__(self, name, header):
|
|
44
|
+
def __init__(self, name, header, advanced_only):
|
|
38
45
|
self.model_name = name
|
|
39
46
|
self.model_header = header
|
|
47
|
+
self.advanced_only = advanced_only
|
|
40
48
|
|
|
41
49
|
@classmethod
|
|
42
50
|
def from_name(cls, name: str):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: gemini-webapi
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.1
|
|
4
4
|
Summary: ✨ An elegant async Python wrapper for Google Gemini web app
|
|
5
5
|
Author: UZQueen
|
|
6
6
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -947,6 +947,7 @@ Currently available models (as of Dec 21, 2024):
|
|
|
947
947
|
- `unspecified` - Default model (Gemini 1.5 Flash)
|
|
948
948
|
- `gemini-1.5-flash` - Gemini 1.5 Flash
|
|
949
949
|
- `gemini-2.0-flash-exp` - Gemini 2.0 Flash Experimental
|
|
950
|
+
- `gemini-2.0-exp-advanced` - Gemini 2.0 Experimental Advanced (requires Gemini Advanced account)
|
|
950
951
|
|
|
951
952
|
```python
|
|
952
953
|
from gemini_webapi.constants import Model
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
gemini_webapi/__init__.py,sha256=28uNIywK4vCXxENaSagNWUzhqr1RyNtLzDF6WRRM4KQ,194
|
|
2
2
|
gemini_webapi/client.py,sha256=SZEihRytBcBNa8ZJllEU3xFRB1cX8ZrEY_3TRjDdN4g,22169
|
|
3
|
-
gemini_webapi/constants.py,sha256=
|
|
3
|
+
gemini_webapi/constants.py,sha256=43tV363_lv6J-idZ48n0_G-A4GZSwIW0gJ60GibNMa0,1866
|
|
4
4
|
gemini_webapi/exceptions.py,sha256=6e-EXHGApi4iC0GDw7RKc3YqVK8UvEkHYaJyGQbReLw,548
|
|
5
5
|
gemini_webapi/types/__init__.py,sha256=d2kvXnE004s2E2KDmPPLi5N-BQ59FgDSlrGrO3Wphww,163
|
|
6
6
|
gemini_webapi/types/candidate.py,sha256=Z9bpIK4l8UWbUVMLEoophfhgROo93dxOM9cAwx77CkU,1030
|
|
@@ -12,8 +12,8 @@ gemini_webapi/utils/load_browser_cookies.py,sha256=A5n_VsB7Rm8ck5lpy856UNJEhv30l
|
|
|
12
12
|
gemini_webapi/utils/logger.py,sha256=PF4ROQq7scRRrWzeYdeYiYs2S2Jqr0bgjyrPbXVOCqE,816
|
|
13
13
|
gemini_webapi/utils/rotate_1psidts.py,sha256=cwCXsE_mX2knaKCuquZT2jsRXHQo-GK2Ldom-cO9Gio,1668
|
|
14
14
|
gemini_webapi/utils/upload_file.py,sha256=X0k-3jW7usheFo5z0nXL9mUt-XF-2L2OgwpJnPSIcKw,1151
|
|
15
|
-
gemini_webapi-1.8.
|
|
16
|
-
gemini_webapi-1.8.
|
|
17
|
-
gemini_webapi-1.8.
|
|
18
|
-
gemini_webapi-1.8.
|
|
19
|
-
gemini_webapi-1.8.
|
|
15
|
+
gemini_webapi-1.8.1.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
16
|
+
gemini_webapi-1.8.1.dist-info/METADATA,sha256=cV33fx9JrgMZJQjiIe5sLUZYkobSIyzW5pmK8mCRBuw,56893
|
|
17
|
+
gemini_webapi-1.8.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
18
|
+
gemini_webapi-1.8.1.dist-info/top_level.txt,sha256=dtWtug_ZrmnUqCYuu8NmGzTgWglHeNzhHU_hXmqZGWE,14
|
|
19
|
+
gemini_webapi-1.8.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|