opengradient 0.5.5__py3-none-any.whl → 0.5.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.
- opengradient/client.py +2 -0
- opengradient/types.py +39 -39
- {opengradient-0.5.5.dist-info → opengradient-0.5.7.dist-info}/METADATA +1 -1
- {opengradient-0.5.5.dist-info → opengradient-0.5.7.dist-info}/RECORD +8 -8
- {opengradient-0.5.5.dist-info → opengradient-0.5.7.dist-info}/WHEEL +0 -0
- {opengradient-0.5.5.dist-info → opengradient-0.5.7.dist-info}/entry_points.txt +0 -0
- {opengradient-0.5.5.dist-info → opengradient-0.5.7.dist-info}/licenses/LICENSE +0 -0
- {opengradient-0.5.5.dist-info → opengradient-0.5.7.dist-info}/top_level.txt +0 -0
opengradient/client.py
CHANGED
|
@@ -867,6 +867,8 @@ class Client:
|
|
|
867
867
|
# Read the response content
|
|
868
868
|
content = await response.aread()
|
|
869
869
|
result = json.loads(content.decode())
|
|
870
|
+
# print(f"Response: {response}")
|
|
871
|
+
# print(f"Response Headers: {response.headers}")
|
|
870
872
|
|
|
871
873
|
payment_hash = ""
|
|
872
874
|
if X402_PROCESSING_HASH_HEADER in response.headers:
|
opengradient/types.py
CHANGED
|
@@ -198,37 +198,37 @@ class Abi:
|
|
|
198
198
|
class LLM(str, Enum):
|
|
199
199
|
"""Enum for available LLM models"""
|
|
200
200
|
|
|
201
|
-
# Existing open-source OG hosted models
|
|
202
|
-
META_LLAMA_3_8B_INSTRUCT = "meta-llama/Meta-Llama-3-8B-Instruct"
|
|
203
|
-
LLAMA_3_2_3B_INSTRUCT = "meta-llama/Llama-3.2-3B-Instruct"
|
|
204
|
-
QWEN_2_5_72B_INSTRUCT = "Qwen/Qwen2.5-72B-Instruct"
|
|
205
|
-
META_LLAMA_3_1_70B_INSTRUCT = "meta-llama/Llama-3.1-70B-Instruct"
|
|
206
|
-
DOBBY_UNHINGED_3_1_8B = "SentientAGI/Dobby-Mini-Unhinged-Llama-3.1-8B"
|
|
207
|
-
DOBBY_LEASHED_3_1_8B = "SentientAGI/Dobby-Mini-Leashed-Llama-3.1-8B"
|
|
201
|
+
# # Existing open-source OG hosted models
|
|
202
|
+
# META_LLAMA_3_8B_INSTRUCT = "meta-llama/Meta-Llama-3-8B-Instruct"
|
|
203
|
+
# LLAMA_3_2_3B_INSTRUCT = "meta-llama/Llama-3.2-3B-Instruct"
|
|
204
|
+
# QWEN_2_5_72B_INSTRUCT = "Qwen/Qwen2.5-72B-Instruct"
|
|
205
|
+
# META_LLAMA_3_1_70B_INSTRUCT = "meta-llama/Llama-3.1-70B-Instruct"
|
|
206
|
+
# DOBBY_UNHINGED_3_1_8B = "SentientAGI/Dobby-Mini-Unhinged-Llama-3.1-8B"
|
|
207
|
+
# DOBBY_LEASHED_3_1_8B = "SentientAGI/Dobby-Mini-Leashed-Llama-3.1-8B"
|
|
208
208
|
|
|
209
209
|
# OpenAI models via TEE
|
|
210
|
-
GPT_4_1_2025_04_14 = "
|
|
211
|
-
GPT_4O = "
|
|
212
|
-
O4_MINI = "
|
|
210
|
+
GPT_4_1_2025_04_14 = "openai/gpt-4.1-2025-04-14"
|
|
211
|
+
GPT_4O = "openai/gpt-4o"
|
|
212
|
+
O4_MINI = "openai/o4-mini"
|
|
213
213
|
|
|
214
214
|
# Anthropic models via TEE
|
|
215
|
-
CLAUDE_3_7_SONNET = "
|
|
216
|
-
CLAUDE_3_5_HAIKU = "
|
|
217
|
-
CLAUDE_4_0_SONNET = "
|
|
215
|
+
CLAUDE_3_7_SONNET = "anthropic/claude-3.7-sonnet"
|
|
216
|
+
CLAUDE_3_5_HAIKU = "anthropic/claude-3.5-haiku"
|
|
217
|
+
CLAUDE_4_0_SONNET = "anthropic/claude-4.0-sonnet"
|
|
218
218
|
|
|
219
219
|
# Google models via TEE
|
|
220
|
-
GEMINI_2_5_FLASH = "
|
|
221
|
-
GEMINI_2_5_PRO = "
|
|
222
|
-
GEMINI_2_0_FLASH = "
|
|
223
|
-
GEMINI_2_5_FLASH_LITE = "
|
|
220
|
+
GEMINI_2_5_FLASH = "google/gemini-2.5-flash"
|
|
221
|
+
GEMINI_2_5_PRO = "google/gemini-2.5-pro"
|
|
222
|
+
GEMINI_2_0_FLASH = "google/gemini-2.0-flash"
|
|
223
|
+
GEMINI_2_5_FLASH_LITE = "google/gemini-2.5-flash-lite"
|
|
224
224
|
|
|
225
225
|
# xAI Grok models via TEE
|
|
226
|
-
GROK_3_MINI_BETA = "
|
|
227
|
-
GROK_3_BETA = "
|
|
228
|
-
GROK_2_1212 = "
|
|
229
|
-
GROK_2_VISION_LATEST = "
|
|
230
|
-
GROK_4_1_FAST = "
|
|
231
|
-
GROK_4_1_FAST_NON_REASONING = "
|
|
226
|
+
GROK_3_MINI_BETA = "x-ai/grok-3-mini-beta"
|
|
227
|
+
GROK_3_BETA = "x-ai/grok-3-beta"
|
|
228
|
+
GROK_2_1212 = "x-ai/grok-2-1212"
|
|
229
|
+
GROK_2_VISION_LATEST = "x-ai/grok-2-vision-latest"
|
|
230
|
+
GROK_4_1_FAST = "x-ai/grok-4.1-fast"
|
|
231
|
+
GROK_4_1_FAST_NON_REASONING = "x-ai/grok-4-1-fast-non-reasoning"
|
|
232
232
|
|
|
233
233
|
class TEE_LLM(str, Enum):
|
|
234
234
|
"""Enum for LLM models available for TEE execution"""
|
|
@@ -237,28 +237,28 @@ class TEE_LLM(str, Enum):
|
|
|
237
237
|
# META_LLAMA_3_1_70B_INSTRUCT = "meta-llama/Llama-3.1-70B-Instruct"
|
|
238
238
|
|
|
239
239
|
# OpenAI models via TEE
|
|
240
|
-
GPT_4_1_2025_04_14 = "
|
|
241
|
-
GPT_4O = "
|
|
242
|
-
O4_MINI = "
|
|
240
|
+
GPT_4_1_2025_04_14 = "openai/gpt-4.1-2025-04-14"
|
|
241
|
+
GPT_4O = "openai/gpt-4o"
|
|
242
|
+
O4_MINI = "openai/o4-mini"
|
|
243
243
|
|
|
244
244
|
# Anthropic models via TEE
|
|
245
|
-
CLAUDE_3_7_SONNET = "
|
|
246
|
-
CLAUDE_3_5_HAIKU = "
|
|
247
|
-
CLAUDE_4_0_SONNET = "
|
|
245
|
+
CLAUDE_3_7_SONNET = "anthropic/claude-3.7-sonnet"
|
|
246
|
+
CLAUDE_3_5_HAIKU = "anthropic/claude-3.5-haiku"
|
|
247
|
+
CLAUDE_4_0_SONNET = "anthropic/claude-4.0-sonnet"
|
|
248
248
|
|
|
249
249
|
# Google models via TEE
|
|
250
|
-
GEMINI_2_5_FLASH = "
|
|
251
|
-
GEMINI_2_5_PRO = "
|
|
252
|
-
GEMINI_2_0_FLASH = "
|
|
253
|
-
GEMINI_2_5_FLASH_LITE = "
|
|
250
|
+
GEMINI_2_5_FLASH = "google/gemini-2.5-flash"
|
|
251
|
+
GEMINI_2_5_PRO = "google/gemini-2.5-pro"
|
|
252
|
+
GEMINI_2_0_FLASH = "google/gemini-2.0-flash"
|
|
253
|
+
GEMINI_2_5_FLASH_LITE = "google/gemini-2.5-flash-lite"
|
|
254
254
|
|
|
255
255
|
# xAI Grok models via TEE
|
|
256
|
-
GROK_3_MINI_BETA = "
|
|
257
|
-
GROK_3_BETA = "
|
|
258
|
-
GROK_2_1212 = "
|
|
259
|
-
GROK_2_VISION_LATEST = "
|
|
260
|
-
GROK_4_1_FAST = "
|
|
261
|
-
GROK_4_1_FAST_NON_REASONING = "
|
|
256
|
+
GROK_3_MINI_BETA = "x-ai/grok-3-mini-beta"
|
|
257
|
+
GROK_3_BETA = "x-ai/grok-3-beta"
|
|
258
|
+
GROK_2_1212 = "x-ai/grok-2-1212"
|
|
259
|
+
GROK_2_VISION_LATEST = "x-ai/grok-2-vision-latest"
|
|
260
|
+
GROK_4_1_FAST = "x-ai/grok-4.1-fast"
|
|
261
|
+
GROK_4_1_FAST_NON_REASONING = "x-ai/grok-4-1-fast-non-reasoning"
|
|
262
262
|
|
|
263
263
|
|
|
264
264
|
@dataclass
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
opengradient/__init__.py,sha256=wVg0KTFNBl7RnZF9huR5-m_q1E7tO-YyQwY7AD9JFoc,12635
|
|
2
2
|
opengradient/account.py,sha256=5wrYpws_1lozjOFjLCTHtxgoxK-LmObDAaVy9eDcJY4,1145
|
|
3
3
|
opengradient/cli.py,sha256=RksBEGVcZgUg6ng53Fgz-Ncv1erBwdADgblB2HmKkwk,29868
|
|
4
|
-
opengradient/client.py,sha256=
|
|
4
|
+
opengradient/client.py,sha256=lzuC4rEwyf1EgHw49PMXjIyjyTsBIAP2XmCNp0cCNzg,63113
|
|
5
5
|
opengradient/defaults.py,sha256=w8-dr5ciF2TGnqbm_ib0Yz4U0YL5ikpNqkcPVpmXzP8,673
|
|
6
6
|
opengradient/exceptions.py,sha256=88tfegboGtlehQcwhxsl6ZzhLJWZWlkf_bkHTiCtXpo,3391
|
|
7
|
-
opengradient/types.py,sha256=
|
|
7
|
+
opengradient/types.py,sha256=L60W1O3xmlYxbJ9ouN6nKNKJSdTW3yzCDsU0lozWF8U,7837
|
|
8
8
|
opengradient/utils.py,sha256=ZUq4OBIml2vsC0tRqus4Zwb_e3g4woo00apByrafuVw,8058
|
|
9
9
|
opengradient/abi/InferencePrecompile.abi,sha256=reepTHg6Q01UrFP0Gexc-JayplsvOLPfG7jrEZ-cV28,10197
|
|
10
10
|
opengradient/abi/PriceHistoryInference.abi,sha256=ZB3fZdx1kaFlp2wt1vTbTZZG1k8HPvmNtkG5Q8Bnajw,5098
|
|
@@ -27,9 +27,9 @@ opengradient/workflow_models/constants.py,sha256=viIkb_LGcfVprqQNaA80gBTj6cfYam0
|
|
|
27
27
|
opengradient/workflow_models/types.py,sha256=Z22hF6c8Y4D2GlzVEIBODGwsqSjSrQvUcpZ7R-mIJdI,409
|
|
28
28
|
opengradient/workflow_models/utils.py,sha256=ySfpuiOBqLTlfto6ZxZf2vc7K6RGIja0l4eaVm5AOzY,1503
|
|
29
29
|
opengradient/workflow_models/workflow_models.py,sha256=d4C_gs39DAfy4cdY9Ee6GMXpPfzwvKFpmxzK1A7LNgU,3900
|
|
30
|
-
opengradient-0.5.
|
|
31
|
-
opengradient-0.5.
|
|
32
|
-
opengradient-0.5.
|
|
33
|
-
opengradient-0.5.
|
|
34
|
-
opengradient-0.5.
|
|
35
|
-
opengradient-0.5.
|
|
30
|
+
opengradient-0.5.7.dist-info/licenses/LICENSE,sha256=xEcvQ3AxZOtDkrqkys2Mm6Y9diEnaSeQRKvxi-JGnNA,1069
|
|
31
|
+
opengradient-0.5.7.dist-info/METADATA,sha256=WmJWW2IPbsKD_fuhafHf_cZeLiCz9_2T8qZUcvw0saU,4019
|
|
32
|
+
opengradient-0.5.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
33
|
+
opengradient-0.5.7.dist-info/entry_points.txt,sha256=yUKTaJx8RXnybkob0J62wVBiCp_1agVbgw9uzsmaeJc,54
|
|
34
|
+
opengradient-0.5.7.dist-info/top_level.txt,sha256=oC1zimVLa2Yi1LQz8c7x-0IQm92milb5ax8gHBHwDqU,13
|
|
35
|
+
opengradient-0.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|