mbxai 1.0.8__py3-none-any.whl → 1.0.9__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__ = "1.0.8"
5
+ __version__ = "1.0.9"
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="1.0.8",
34
+ version="1.0.9",
35
35
  )
36
36
 
37
37
  # Initialize MCP server
@@ -3,7 +3,7 @@ OpenRouter client implementation.
3
3
  """
4
4
 
5
5
  from typing import Any, Optional, Union
6
- from openai import OpenAI, OpenAIError, RateLimitError, APITimeoutError, APIConnectionError, InvalidRequestError, AuthenticationError
6
+ from openai import OpenAI, OpenAIError, RateLimitError, APITimeoutError, APIConnectionError, BadRequestError, AuthenticationError
7
7
  from .models import OpenRouterModel, OpenRouterModelRegistry
8
8
  from .config import OpenRouterConfig
9
9
  import logging
@@ -288,9 +288,9 @@ class OpenRouterClient:
288
288
  except AuthenticationError as e:
289
289
  logger.error(f"Authentication error: {str(e)}")
290
290
  raise OpenRouterAPIError(f"Authentication error: {str(e)}")
291
- except InvalidRequestError as e:
292
- logger.error(f"Invalid request: {str(e)}")
293
- raise OpenRouterAPIError(f"Invalid request: {str(e)}")
291
+ except BadRequestError as e:
292
+ logger.error(f"Bad request: {str(e)}")
293
+ raise OpenRouterAPIError(f"Bad request: {str(e)}")
294
294
  except OpenAIError as e:
295
295
  logger.error(f"OpenAI error: {str(e)}")
296
296
  raise OpenRouterAPIError(f"OpenAI error: {str(e)}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbxai
3
- Version: 1.0.8
3
+ Version: 1.0.9
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,4 +1,4 @@
1
- mbxai/__init__.py,sha256=OtdiGp4duB0VVkYC0OipXxl-pkpoA0hVtu4y0jnwF6E,47
1
+ mbxai/__init__.py,sha256=A7h5w53uCGn8KthkK_WIBp5BBOHoVELI0DylEZUB1JA,47
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=2BhJNXN-fmbbS5PzGv9dcytubYXNwCyV7guzAsPNnVg,3454
12
+ mbxai/mcp/server.py,sha256=B3g6K85Vujji-L7vD2S_MIZRIqBUEyQHBCeCJeTxFMk,3454
13
13
  mbxai/openrouter/__init__.py,sha256=Ito9Qp_B6q-RLGAQcYyTJVWwR2YAZvNqE-HIYXxhtD8,298
14
- mbxai/openrouter/client.py,sha256=r1RLnQKK_zVs9P7KA7qWX_LPlTHOJJP-yr4Sq1A4zoE,16890
14
+ mbxai/openrouter/client.py,sha256=78-_yGiowkXc1ggXSpzoFiobsGWt1DoWD6VlLawL-dU,16874
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.8.dist-info/METADATA,sha256=gskY0emdVWotCFYHYl9y804Bc90bZ-KBLDrW3vVZa-Q,4147
22
- mbxai-1.0.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
- mbxai-1.0.8.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
24
- mbxai-1.0.8.dist-info/RECORD,,
21
+ mbxai-1.0.9.dist-info/METADATA,sha256=Bd28OQOur0DBytDfwB48Gj3m43Huga6tz7x-Ekr3bD0,4147
22
+ mbxai-1.0.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
+ mbxai-1.0.9.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
24
+ mbxai-1.0.9.dist-info/RECORD,,
File without changes