mbxai 0.6.26__py3-none-any.whl → 0.6.27__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.
- mbxai/__init__.py +1 -1
- mbxai/mcp/server.py +1 -1
- mbxai/openrouter/client.py +6 -2
- {mbxai-0.6.26.dist-info → mbxai-0.6.27.dist-info}/METADATA +1 -1
- {mbxai-0.6.26.dist-info → mbxai-0.6.27.dist-info}/RECORD +7 -7
- {mbxai-0.6.26.dist-info → mbxai-0.6.27.dist-info}/WHEEL +0 -0
- {mbxai-0.6.26.dist-info → mbxai-0.6.27.dist-info}/licenses/LICENSE +0 -0
mbxai/__init__.py
CHANGED
mbxai/mcp/server.py
CHANGED
mbxai/openrouter/client.py
CHANGED
@@ -273,6 +273,7 @@ class OpenRouterClient:
|
|
273
273
|
total_size = sum(len(str(msg)) for msg in messages)
|
274
274
|
logger.info(f"Total message size: {total_size} bytes")
|
275
275
|
|
276
|
+
# Make the parse request
|
276
277
|
response = self._client.beta.chat.completions.parse(
|
277
278
|
messages=messages,
|
278
279
|
model=model or self.model,
|
@@ -280,10 +281,13 @@ class OpenRouterClient:
|
|
280
281
|
**kwargs,
|
281
282
|
)
|
282
283
|
|
284
|
+
if not response or not hasattr(response, 'choices') or not response.choices:
|
285
|
+
logger.error(f"Full response content: {response}")
|
286
|
+
raise OpenRouterAPIError("Invalid response from OpenRouter: missing choices")
|
287
|
+
|
283
288
|
# Log response details
|
284
289
|
logger.info("Received response from OpenRouter")
|
285
|
-
|
286
|
-
logger.info(f"Response has {len(response.choices)} choices")
|
290
|
+
logger.info(f"Response has {len(response.choices)} choices")
|
287
291
|
|
288
292
|
return response
|
289
293
|
|
@@ -1,18 +1,18 @@
|
|
1
|
-
mbxai/__init__.py,sha256=
|
1
|
+
mbxai/__init__.py,sha256=OKyb_lQ2-RORvCDJpCVmYgx4xQW5Wd6FX-Mju2vweGk,48
|
2
2
|
mbxai/core.py,sha256=WMvmU9TTa7M_m-qWsUew4xH8Ul6xseCZ2iBCXJTW-Bs,196
|
3
3
|
mbxai/mcp/__init__.py,sha256=_ek9iYdYqW5saKetj4qDci11jxesQDiHPJRpHMKkxgU,175
|
4
4
|
mbxai/mcp/client.py,sha256=m3FBMqewv6b8ZJ7V9TnHqHxJ3acHDQDHvbuYhweI9-g,5283
|
5
5
|
mbxai/mcp/example.py,sha256=oaol7AvvZnX86JWNz64KvPjab5gg1VjVN3G8eFSzuaE,2350
|
6
|
-
mbxai/mcp/server.py,sha256=
|
6
|
+
mbxai/mcp/server.py,sha256=d5l9778YxCnTErgdmBVi3n56FdIyJGUR_nCWQgR9Gtw,3463
|
7
7
|
mbxai/openrouter/__init__.py,sha256=Ito9Qp_B6q-RLGAQcYyTJVWwR2YAZvNqE-HIYXxhtD8,298
|
8
|
-
mbxai/openrouter/client.py,sha256=
|
8
|
+
mbxai/openrouter/client.py,sha256=1HmWPJvP5lNVwSguaAX6ZlKth0-DUZT9GiJRi6JOgxo,13759
|
9
9
|
mbxai/openrouter/config.py,sha256=Ia93s-auim9Sq71eunVDbn9ET5xX2zusXpV4JBdHAzs,3251
|
10
10
|
mbxai/openrouter/models.py,sha256=b3IjjtZAjeGOf2rLsdnCD1HacjTnS8jmv_ZXorc-KJQ,2604
|
11
11
|
mbxai/tools/__init__.py,sha256=ogxrHvgJ7OR62Lmd5x9Eh5d2C0jqWyQis7Zy3yKpZ78,218
|
12
12
|
mbxai/tools/client.py,sha256=qOf8MiQ8_flPUNiMioOyjeEaV8rN1EBWb98T8qTC3D4,17582
|
13
13
|
mbxai/tools/example.py,sha256=1HgKK39zzUuwFbnp3f0ThyWVfA_8P28PZcTwaUw5K78,2232
|
14
14
|
mbxai/tools/types.py,sha256=PEJ2AxBqywbJCp689QZhG87rDHWNuKGnmB5CCQsAMlw,5251
|
15
|
-
mbxai-0.6.
|
16
|
-
mbxai-0.6.
|
17
|
-
mbxai-0.6.
|
18
|
-
mbxai-0.6.
|
15
|
+
mbxai-0.6.27.dist-info/METADATA,sha256=072pPTX8EUuxy5tJhiHomexjRlEGtSZEW-ZYnfwOW4U,4148
|
16
|
+
mbxai-0.6.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
17
|
+
mbxai-0.6.27.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
|
18
|
+
mbxai-0.6.27.dist-info/RECORD,,
|
File without changes
|
File without changes
|