g4f 6.9.5__py3-none-any.whl → 6.9.6__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.
@@ -484,7 +484,7 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
484
484
  if api_key and not api_key.startswith("g4f_") and not api_key.startswith("gfs_"):
485
485
  headers = {"authorization": f"Bearer {api_key}"}
486
486
  elif cls.balance > 0:
487
- headers = {"authorization": f"Bearer {"".join(cls.api_key)}"}
487
+ headers = {"authorization": f"Bearer {''.join(cls.api_key)}"}
488
488
  yield JsonRequest.from_dict(data)
489
489
  if headers:
490
490
  url = cls.gen_text_api_endpoint
@@ -101,7 +101,7 @@ class Gemini(AsyncGeneratorProvider, ProviderModelMixin):
101
101
  _sid: str = None
102
102
 
103
103
  auto_refresh = True
104
- refresh_interval = 540
104
+ refresh_interval = 60 * 15 # 15 minutes
105
105
  rotate_tasks = {}
106
106
 
107
107
  @classmethod
g4f/api/__init__.py CHANGED
@@ -229,7 +229,7 @@ class Api:
229
229
 
230
230
  def register_authorization(self):
231
231
  if AppConfig.g4f_api_key:
232
- print(f"Register authentication key: {''.join(['*' for _ in range(len(AppConfig.g4f_api_key))])}")
232
+ print("Register authentication key:", ''.join(['*' for _ in range(len(AppConfig.g4f_api_key))]))
233
233
  if has_crypto:
234
234
  private_key, _ = create_or_read_keys()
235
235
  session_key = get_session_key()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: g4f
3
- Version: 6.9.5
3
+ Version: 6.9.6
4
4
  Summary: The official gpt4free repository | various collection of powerful language models
5
5
  Home-page: https://github.com/xtekky/gpt4free
6
6
  Author: Tekky
@@ -23,7 +23,7 @@ g4f/Provider/Mintlify.py,sha256=3Bvy1oh6scg4xs9pw5RY4mmi8XEvQDelnNp664TefbU,7937
23
23
  g4f/Provider/OIVSCodeSer.py,sha256=clebON7Ssd9syewh3BWT59XOeB-WORXF6FPOwbzfRmo,1366
24
24
  g4f/Provider/OperaAria.py,sha256=sLnTOKzbW9BxTxNmHXJ-YDnhPU6Dj6MBdDfqDh-Zz-c,14662
25
25
  g4f/Provider/Perplexity.py,sha256=GUebbVin9hCg4FDei9RX2N6WboFcDDPm061WnnpPRaI,13236
26
- g4f/Provider/PollinationsAI.py,sha256=nsC2VntGavZJDiaAX0HhbWk6uWwYPTDCFGlnQCEyA4I,21458
26
+ g4f/Provider/PollinationsAI.py,sha256=BfrRfDyaYiKmaUun7QIdS9vL9Fik8IcfUDCJOoExbZc,21458
27
27
  g4f/Provider/PollinationsImage.py,sha256=wdGY9kbPGlqAkyeJcjXgWOG3HLVPU4QK-JENwg3gmwk,2297
28
28
  g4f/Provider/Qwen.py,sha256=XPJHRlobijqjdDGVqA-aVyRx2SeM28zSWf-NmzxJtgE,23876
29
29
  g4f/Provider/Startnest.py,sha256=OocXEAK3pKG-tC_D_chGE7GD22dZr67J1m7JBhLxniM,9526
@@ -71,7 +71,7 @@ g4f/Provider/needs_auth/Custom.py,sha256=bD6ao9IkIG_oW7bYAHCSEZrMEnDX9u2X96q9LkC
71
71
  g4f/Provider/needs_auth/DeepSeek.py,sha256=XU4SGVEZ7huLNYXve5hKKev2xZn_l9KDSAA7ipOir3Y,471
72
72
  g4f/Provider/needs_auth/DeepSeekAPI.py,sha256=UaN4W5b_1nXsyB5MN81NzHkQLz1V6DOzteegS0o-4dc,3421
73
73
  g4f/Provider/needs_auth/FenayAI.py,sha256=2NkDnhdEVDMD1Xk13rp78nRt7oGwbgsX0jlonWt-Ym8,519
74
- g4f/Provider/needs_auth/Gemini.py,sha256=uw7OrndEAbqDMnBOzTF1fLqIV_eJITtcdRd4yYCkNBQ,22835
74
+ g4f/Provider/needs_auth/Gemini.py,sha256=p0idmlvIbjg3kMEGsOv5N9b-j5b-blNT2yxO2xnAmiQ,22853
75
75
  g4f/Provider/needs_auth/GeminiCLI.py,sha256=BNQv_Hqzu3E0GtVRbZDZdcq--ZHpJDdLRF5ssG4yX9o,23554
76
76
  g4f/Provider/needs_auth/GeminiPro.py,sha256=zZBvjc7N313aqp08s8OyNb0kZDn_YTpVdFvSo2GuqD8,767
77
77
  g4f/Provider/needs_auth/GigaChat.py,sha256=2IqQlav_-g-4ZUMJ0tO8KGpvchg9_0ap6rzGP_5dLRI,6325
@@ -140,7 +140,7 @@ g4f/Provider/template/OpenaiTemplate.py,sha256=qjuIORIXyWHE4DRpDNt8MUDtlbGFpPfK1
140
140
  g4f/Provider/template/__init__.py,sha256=FmQdc8a8YLN5kW0mos2owDekq01rU0lv7bdmiAW-f5A,77
141
141
  g4f/Provider/yupp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
142
142
  g4f/Provider/yupp/models.py,sha256=oXMyfnDYievE1q92arOVxrhy_QpsBzICtoZesJUY-Po,10225
143
- g4f/api/__init__.py,sha256=n482iWw4NSLUnCnOOxGJ_SIN6WpPXhRKJCNFZYnQe1Y,41358
143
+ g4f/api/__init__.py,sha256=fNj92828FjGD71Ga34Rjto_cQ3dWoFe8DkN722dyLZQ,41356
144
144
  g4f/api/_logging.py,sha256=7fh8hjDzp6NeMUbuNJ30UnWFu86KA2FEI0EsaIhw1Kc,910
145
145
  g4f/api/_tokenizer.py,sha256=0Kbd6sM_8jQ3ph-1jM4JZeBCOAWsAv4iaxzHtdwHqto,286
146
146
  g4f/api/run.py,sha256=orx-noEaB6FrO3xVcdXLOpzb3Wim09o4zYvNuaUa9l4,75
@@ -210,9 +210,9 @@ g4f/tools/files.py,sha256=bUTbeNp8ujTZQiW3GLTtFcgl3-1AnH3cDyIKHfh6Mjc,23397
210
210
  g4f/tools/media.py,sha256=AE9hGVRxQBVZzQ_Ylzeoo2TJUGXSBXO5RbLwj1I2ZTE,4701
211
211
  g4f/tools/run_tools.py,sha256=Yb0osWdDt4wUnkvwln4R6qcLapdddC3n2giZMPXWkzM,16662
212
212
  g4f/tools/web_search.py,sha256=vAZJD-qy15llsgAbkXzoEltqdFB6TlKLbqDJ1DS-6vs,2086
213
- g4f-6.9.5.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
214
- g4f-6.9.5.dist-info/METADATA,sha256=VvpIyPvPOx7iCEh3PG5VUzbw8S-GK3SxMy0JzvLwV68,23255
215
- g4f-6.9.5.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
216
- g4f-6.9.5.dist-info/entry_points.txt,sha256=J7Usl6dNjXJlvuzGAUEm6cuDXWpVdGq7SfK-tPoiZSI,67
217
- g4f-6.9.5.dist-info/top_level.txt,sha256=bMRlTupWYCcLWy80AnnKZkhpBsXsF8gI3BaMhSZSgRo,4
218
- g4f-6.9.5.dist-info/RECORD,,
213
+ g4f-6.9.6.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
214
+ g4f-6.9.6.dist-info/METADATA,sha256=UgVjMiGcn-oOq42Dp8UpniAdHG41iizSMRjgJ71rcIQ,23255
215
+ g4f-6.9.6.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
216
+ g4f-6.9.6.dist-info/entry_points.txt,sha256=J7Usl6dNjXJlvuzGAUEm6cuDXWpVdGq7SfK-tPoiZSI,67
217
+ g4f-6.9.6.dist-info/top_level.txt,sha256=bMRlTupWYCcLWy80AnnKZkhpBsXsF8gI3BaMhSZSgRo,4
218
+ g4f-6.9.6.dist-info/RECORD,,
File without changes