Ryzenth 1.8.6__py3-none-any.whl → 1.8.7__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.
Ryzenth/__init__.py CHANGED
@@ -19,7 +19,7 @@
19
19
 
20
20
  from . import *
21
21
  from .__version__ import __version__
22
- from .ryzenth_client import ApiKeyFrom
22
+ from ._client import ApiKeyFrom
23
23
 
24
24
  __all__ = [
25
25
  "ApiKeyFrom"
Ryzenth/__version__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "1.8.6"
1
+ __version__ = "1.8.7"
2
2
  __author__ = "TeamKillerX"
3
3
  __title__ = "Ryzenth"
4
4
  __description__ = "Ryzenth Python API Wrapper"
Ryzenth/_asynchisded.py CHANGED
@@ -32,8 +32,24 @@ class RyzenthXAsync:
32
32
  self.base_url = base_url.rstrip("/")
33
33
  self.headers = {"x-api-key": self.api_key}
34
34
  self.images = self.ImagesAsync(self)
35
+ self.what = self.WhatAsync(self)
35
36
  self.obj = Box
36
37
 
38
+ class WhatAsync:
39
+ def __init__(self, parent):
40
+ self.parent = parent
41
+
42
+ async def think(self, params: QueryParameter, dot_access=False):
43
+ url = f"{self.parent.base_url}/v1/ai/deepseek/deepseek-r1-distill-qwen-32b"
44
+ async with httpx.AsyncClient() as client:
45
+ try:
46
+ response = await client.get(url, params=params.dict(), headers=self.parent.headers, timeout=30)
47
+ response.raise_for_status()
48
+ return self.parent.obj(response.json() or {}) if dot_access else response.json()
49
+ except httpx.HTTPError as e:
50
+ LOGS.error(f"[ASYNC] Error: {str(e)}")
51
+ return None
52
+
37
53
  class ImagesAsync:
38
54
  def __init__(self, parent):
39
55
  self.parent = parent
Ryzenth/_synchisded.py CHANGED
@@ -32,8 +32,28 @@ class RyzenthXSync:
32
32
  self.base_url = base_url.rstrip("/")
33
33
  self.headers = {"x-api-key": self.api_key}
34
34
  self.images = self.ImagesSync(self)
35
+ self.what = self.WhatSync(self)
35
36
  self.obj = Box
36
37
 
38
+ class WhatSync:
39
+ def __init__(self, parent):
40
+ self.parent = parent
41
+
42
+ def think(self, params: QueryParameter, dot_access=False):
43
+ url = f"{self.parent.base_url}/v1/ai/deepseek/deepseek-r1-distill-qwen-32b"
44
+ try:
45
+ response = httpx.get(
46
+ url,
47
+ params=params.dict(),
48
+ headers=self.parent.headers,
49
+ timeout=30
50
+ )
51
+ response.raise_for_status()
52
+ return self.parent.obj(response.json() or {}) if dot_access else response.json()
53
+ except httpx.HTTPError as e:
54
+ LOGS.error(f"[SYNC] Error fetching from deepseek {e}")
55
+ return None
56
+
37
57
  class ImagesSync:
38
58
  def __init__(self, parent):
39
59
  self.parent = parent
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Ryzenth
3
- Version: 1.8.6
3
+ Version: 1.8.7
4
4
  Summary: Ryzenth Python Wrapper For Perfomance
5
5
  Author: TeamKillerX
6
6
  License: MIT
@@ -0,0 +1,11 @@
1
+ Ryzenth/__init__.py,sha256=CKayGQJ_ZUZF6OHyL9kCdTah05BUikXKWKXL_raAgo8,937
2
+ Ryzenth/__version__.py,sha256=y3oVj4a94Xad01PaVSmZEY3iYLp5cn_eJ2km-fRTEbA,118
3
+ Ryzenth/_asynchisded.py,sha256=ySUWEsx4V2lT93OiiPy7RvWHqVuYtm3ySno6ddJYFAM,5804
4
+ Ryzenth/_client.py,sha256=Y-I1ug8Hf2eF74oDY4eICOTP_nuLXdsDSkyZhpdqZy4,1475
5
+ Ryzenth/_synchisded.py,sha256=Et4yIWvsg8UH3_bXBNevnEQzYNkz6F8mj_0W-dQEFI0,5644
6
+ Ryzenth/types/__init__.py,sha256=imnQqDE2egYlFm2_4DRjleLLkFTRthcdZChRBVJvjoc,983
7
+ ryzenth-1.8.7.dist-info/licenses/LICENSE,sha256=C73aiGSgoCAVNzvAHs-TROaf5vV8yCj9nqpGrmfNHHo,1068
8
+ ryzenth-1.8.7.dist-info/METADATA,sha256=fwGlfxqmVbex7WWCWaI9NbWU0PMEk0J-OFeO6tyN7i4,4181
9
+ ryzenth-1.8.7.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
10
+ ryzenth-1.8.7.dist-info/top_level.txt,sha256=0vIhjOjoQuCxLeZO0of8VCx2jsri-bLHV28nh8wWDnc,8
11
+ ryzenth-1.8.7.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- Ryzenth/__init__.py,sha256=Xkdo2DrOr9eOGlRdLUC9blzsuHHGIC9WrzGs1j83d3I,944
2
- Ryzenth/__version__.py,sha256=_6wO1xA9F2oKC3CWMcHVuw6hDO0q5ldjO5IZQBEbXcs,118
3
- Ryzenth/_asynchisded.py,sha256=4EKYIiyd7-WV2EALZf8AoZhybpywZSBbSZq0sNmo5cs,5034
4
- Ryzenth/_synchisded.py,sha256=RtfqFF43AMt9_0hqhWvT3MzwQwpCJ6Qw38K3flilCD8,4857
5
- Ryzenth/ryzenth_client.py,sha256=Y-I1ug8Hf2eF74oDY4eICOTP_nuLXdsDSkyZhpdqZy4,1475
6
- Ryzenth/types/__init__.py,sha256=imnQqDE2egYlFm2_4DRjleLLkFTRthcdZChRBVJvjoc,983
7
- ryzenth-1.8.6.dist-info/licenses/LICENSE,sha256=C73aiGSgoCAVNzvAHs-TROaf5vV8yCj9nqpGrmfNHHo,1068
8
- ryzenth-1.8.6.dist-info/METADATA,sha256=zB1_iHjlMyiyqT1DrLlhZN8Tw6Kqm_VR1aDiS5hWLdY,4181
9
- ryzenth-1.8.6.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
10
- ryzenth-1.8.6.dist-info/top_level.txt,sha256=0vIhjOjoQuCxLeZO0of8VCx2jsri-bLHV28nh8wWDnc,8
11
- ryzenth-1.8.6.dist-info/RECORD,,
File without changes