mbxai 1.0.10__py3-none-any.whl → 1.0.12__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 +2 -4
- {mbxai-1.0.10.dist-info → mbxai-1.0.12.dist-info}/METADATA +1 -1
- {mbxai-1.0.10.dist-info → mbxai-1.0.12.dist-info}/RECORD +7 -7
- {mbxai-1.0.10.dist-info → mbxai-1.0.12.dist-info}/WHEEL +0 -0
- {mbxai-1.0.10.dist-info → mbxai-1.0.12.dist-info}/licenses/LICENSE +0 -0
mbxai/__init__.py
CHANGED
mbxai/mcp/server.py
CHANGED
mbxai/openrouter/client.py
CHANGED
@@ -11,6 +11,7 @@ import time
|
|
11
11
|
import asyncio
|
12
12
|
import traceback
|
13
13
|
from functools import wraps
|
14
|
+
import json
|
14
15
|
|
15
16
|
logger = logging.getLogger(__name__)
|
16
17
|
|
@@ -335,7 +336,6 @@ class OpenRouterClient:
|
|
335
336
|
# If there's no parsed attribute but there is content, try to parse it
|
336
337
|
if not hasattr(response.choices[0].message, 'parsed') and hasattr(response.choices[0].message, 'content'):
|
337
338
|
try:
|
338
|
-
import json
|
339
339
|
content = response.choices[0].message.content
|
340
340
|
if isinstance(content, str):
|
341
341
|
parsed = json.loads(content)
|
@@ -355,11 +355,9 @@ class OpenRouterClient:
|
|
355
355
|
except Exception as e:
|
356
356
|
stack_trace = traceback.format_exc()
|
357
357
|
logger.error(f"Raising error: {e}")
|
358
|
-
logger.error(f"Full request from ERROR
|
358
|
+
logger.error(f"Full request from ERROR:\n{json.dumps(request, indent=2)}")
|
359
359
|
logger.error(f"Error in parse completion: {str(e)}")
|
360
360
|
logger.error(f"Stack trace:\n{stack_trace}")
|
361
|
-
logger.error(f"Request details: model={model or self.model}, response_format={response_format}, kwargs={kwargs}")
|
362
|
-
logger.error(f"Message structure: {[{'role': msg.get('role'), 'content_length': len(str(msg.get('content', '')))} for msg in messages]}")
|
363
361
|
|
364
362
|
if hasattr(e, 'response') and e.response is not None:
|
365
363
|
logger.error(f"Response status: {e.response.status_code}")
|
@@ -1,4 +1,4 @@
|
|
1
|
-
mbxai/__init__.py,sha256=
|
1
|
+
mbxai/__init__.py,sha256=Tt4H1XboHHlIeLHSX5mcSCD1CmE4PLQ8L2jidznrytg,48
|
2
2
|
mbxai/core.py,sha256=WMvmU9TTa7M_m-qWsUew4xH8Ul6xseCZ2iBCXJTW-Bs,196
|
3
3
|
mbxai/examples/openrouter_example.py,sha256=-grXHKMmFLoh-yUIEMc31n8Gg1S7uSazBWCIOWxgbyQ,1317
|
4
4
|
mbxai/examples/parse_example.py,sha256=eCKMJoOl6qwo8sDP6Trc6ncgjPlgTqi5tPE2kB5_P0k,3821
|
@@ -9,16 +9,16 @@ mbxai/examples/mcp/mcp_server_example.py,sha256=nFfg22Jnc6HMW_ezLO3So1xwDdx2_rIt
|
|
9
9
|
mbxai/mcp/__init__.py,sha256=_ek9iYdYqW5saKetj4qDci11jxesQDiHPJRpHMKkxgU,175
|
10
10
|
mbxai/mcp/client.py,sha256=eXIN2ebprNF5UgM1jb-4JkXmc-5toUhtlBNFKVU7FgY,5204
|
11
11
|
mbxai/mcp/example.py,sha256=oaol7AvvZnX86JWNz64KvPjab5gg1VjVN3G8eFSzuaE,2350
|
12
|
-
mbxai/mcp/server.py,sha256
|
12
|
+
mbxai/mcp/server.py,sha256=-umh9KNn0dep-C4Rk4qicrQxawBn3H5Op0Vf7m04ZK4,3455
|
13
13
|
mbxai/openrouter/__init__.py,sha256=Ito9Qp_B6q-RLGAQcYyTJVWwR2YAZvNqE-HIYXxhtD8,298
|
14
|
-
mbxai/openrouter/client.py,sha256=
|
14
|
+
mbxai/openrouter/client.py,sha256=5M0a7lL2XKdBdbNN7gIpA2Uch28AQ4mKr1DkGBi1aBs,16634
|
15
15
|
mbxai/openrouter/config.py,sha256=Ia93s-auim9Sq71eunVDbn9ET5xX2zusXpV4JBdHAzs,3251
|
16
16
|
mbxai/openrouter/models.py,sha256=b3IjjtZAjeGOf2rLsdnCD1HacjTnS8jmv_ZXorc-KJQ,2604
|
17
17
|
mbxai/tools/__init__.py,sha256=ogxrHvgJ7OR62Lmd5x9Eh5d2C0jqWyQis7Zy3yKpZ78,218
|
18
18
|
mbxai/tools/client.py,sha256=h_1fxVDBq57f_OXNsj-TBp6-r367sv6Z5nk1qLFcLO8,14951
|
19
19
|
mbxai/tools/example.py,sha256=1HgKK39zzUuwFbnp3f0ThyWVfA_8P28PZcTwaUw5K78,2232
|
20
20
|
mbxai/tools/types.py,sha256=pAoVuL7nKhvL3Iek0JheGfll4clsABFLl1CNjmiG3No,5866
|
21
|
-
mbxai-1.0.
|
22
|
-
mbxai-1.0.
|
23
|
-
mbxai-1.0.
|
24
|
-
mbxai-1.0.
|
21
|
+
mbxai-1.0.12.dist-info/METADATA,sha256=1WO8gDKfVAQsdYxVlJtE_wBBzKjkroUtE_E4Yx4byMg,4148
|
22
|
+
mbxai-1.0.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
23
|
+
mbxai-1.0.12.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
|
24
|
+
mbxai-1.0.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|