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 CHANGED
@@ -2,4 +2,4 @@
2
2
  MBX AI package.
3
3
  """
4
4
 
5
- __version__ = "0.6.26"
5
+ __version__ = "0.6.27"
mbxai/mcp/server.py CHANGED
@@ -31,7 +31,7 @@ class MCPServer:
31
31
  self.app = FastAPI(
32
32
  title=self.name,
33
33
  description=self.description,
34
- version="0.6.26",
34
+ version="0.6.27",
35
35
  )
36
36
 
37
37
  # Initialize MCP server
@@ -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
- if hasattr(response, 'choices') and response.choices:
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbxai
3
- Version: 0.6.26
3
+ Version: 0.6.27
4
4
  Summary: MBX AI SDK
5
5
  Project-URL: Homepage, https://www.mibexx.de
6
6
  Project-URL: Documentation, https://www.mibexx.de
@@ -1,18 +1,18 @@
1
- mbxai/__init__.py,sha256=Out2NMCo5hL8fjqtf7vlBcmN2hfHzmLai8gORDPKVvE,48
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=mav-1O445zNBGCSubzt91IrYZnPD_QLpHm02TQyyw9Y,3463
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=nusxYObyLAMGQd6J9u2uLfkRXyE5kZmdIGdlU-76HPo,13529
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.26.dist-info/METADATA,sha256=9r-_evlE1RdD3q0cUbuWmQeSqVVWAkm5n17f6Q2y5xA,4148
16
- mbxai-0.6.26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- mbxai-0.6.26.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
18
- mbxai-0.6.26.dist-info/RECORD,,
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