indoxrouter 0.1.28__py3-none-any.whl → 0.1.31__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.
- indoxrouter/client.py +3 -6
- indoxrouter/constants.py +1 -1
- {indoxrouter-0.1.28.dist-info → indoxrouter-0.1.31.dist-info}/METADATA +1 -1
- indoxrouter-0.1.31.dist-info/RECORD +9 -0
- indoxrouter-0.1.28.dist-info/RECORD +0 -9
- {indoxrouter-0.1.28.dist-info → indoxrouter-0.1.31.dist-info}/WHEEL +0 -0
- {indoxrouter-0.1.28.dist-info → indoxrouter-0.1.31.dist-info}/licenses/LICENSE +0 -0
- {indoxrouter-0.1.28.dist-info → indoxrouter-0.1.31.dist-info}/top_level.txt +0 -0
indoxrouter/client.py
CHANGED
@@ -333,10 +333,7 @@ class Client:
|
|
333
333
|
|
334
334
|
response = self.session.request(**request_params)
|
335
335
|
|
336
|
-
if
|
337
|
-
return response
|
338
|
-
|
339
|
-
# Check if we need to reauthenticate (401 Unauthorized)
|
336
|
+
# Check if we need to reauthenticate (401 Unauthorized) - for both streaming and non-streaming
|
340
337
|
if response.status_code == 401:
|
341
338
|
logger.debug("Received 401, attempting to reauthenticate")
|
342
339
|
self._authenticate()
|
@@ -349,8 +346,8 @@ class Client:
|
|
349
346
|
# Retry the request after reauthentication
|
350
347
|
response = self.session.request(**request_params)
|
351
348
|
|
352
|
-
|
353
|
-
|
349
|
+
if stream:
|
350
|
+
return response
|
354
351
|
|
355
352
|
response.raise_for_status()
|
356
353
|
return response.json()
|
indoxrouter/constants.py
CHANGED
@@ -25,7 +25,7 @@ CHAT_ENDPOINT = "chat/completions"
|
|
25
25
|
COMPLETION_ENDPOINT = "completions"
|
26
26
|
EMBEDDING_ENDPOINT = "embeddings"
|
27
27
|
IMAGE_ENDPOINT = "images/generations"
|
28
|
-
TTS_ENDPOINT = "tts/generations"
|
28
|
+
TTS_ENDPOINT = "audio/tts/generations"
|
29
29
|
STT_ENDPOINT = "audio/stt/transcriptions"
|
30
30
|
STT_TRANSLATION_ENDPOINT = "audio/stt/translations"
|
31
31
|
MODEL_ENDPOINT = "models"
|
@@ -0,0 +1,9 @@
|
|
1
|
+
indoxrouter/__init__.py,sha256=P_2eiiAi-DrkkeeJndQdEMqnVheWzOZIjWkDayrwxuk,1561
|
2
|
+
indoxrouter/client.py,sha256=357muF784CQYT8Vf0a5z4mT0uW6YOJrYkIwdNIXBl1w,55209
|
3
|
+
indoxrouter/constants.py,sha256=rBTeOojwiokuN4F5DEt3DAmryXiCCtT7BBq9Gtc0arg,1590
|
4
|
+
indoxrouter/exceptions.py,sha256=cGlXNF8dd4X8UBWgxTA099nRhEkIjcqE_4iGOlIVVp8,1632
|
5
|
+
indoxrouter-0.1.31.dist-info/licenses/LICENSE,sha256=5n28CfoynFakg-QJIHnecEXcveN8gq-ZwhC0h7ATse0,24232
|
6
|
+
indoxrouter-0.1.31.dist-info/METADATA,sha256=fyvGflgnrL_o2vReOiCOvh2tZybQPKmIZ0kJaBTRzZw,5740
|
7
|
+
indoxrouter-0.1.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
8
|
+
indoxrouter-0.1.31.dist-info/top_level.txt,sha256=v6FGWkw0QAnXhyYtnXLI1cxzna0iveNvZUotVzCWabM,12
|
9
|
+
indoxrouter-0.1.31.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
indoxrouter/__init__.py,sha256=P_2eiiAi-DrkkeeJndQdEMqnVheWzOZIjWkDayrwxuk,1561
|
2
|
-
indoxrouter/client.py,sha256=dzeLN-DKHiHORhXA0zI_fFg5_Rvrd98uNXqpIFKobBQ,55234
|
3
|
-
indoxrouter/constants.py,sha256=Ti-XzQRgFQlNkfmaCKtfBhReb5nIkdnfuTvH0Zu7GHI,1584
|
4
|
-
indoxrouter/exceptions.py,sha256=cGlXNF8dd4X8UBWgxTA099nRhEkIjcqE_4iGOlIVVp8,1632
|
5
|
-
indoxrouter-0.1.28.dist-info/licenses/LICENSE,sha256=5n28CfoynFakg-QJIHnecEXcveN8gq-ZwhC0h7ATse0,24232
|
6
|
-
indoxrouter-0.1.28.dist-info/METADATA,sha256=1FhWrzOdVaSLO6H29KYJBLG5kO_MQqbutpkhvh669Vc,5740
|
7
|
-
indoxrouter-0.1.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
8
|
-
indoxrouter-0.1.28.dist-info/top_level.txt,sha256=v6FGWkw0QAnXhyYtnXLI1cxzna0iveNvZUotVzCWabM,12
|
9
|
-
indoxrouter-0.1.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|