mbxai 1.2.0__py3-none-any.whl → 1.2.2__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.2.0"
5
+ __version__ = "1.2.2"
mbxai/mcp/client.py CHANGED
@@ -36,7 +36,7 @@ class MCPTool(Tool):
36
36
  }
37
37
  }
38
38
 
39
- logger.info(f"Created function definition for {self.name}: {json.dumps(function_def, indent=2)}")
39
+ logger.debug(f"(client) Created function definition for {self.name}: {json.dumps(function_def, indent=2)}")
40
40
  return function_def
41
41
 
42
42
 
@@ -81,8 +81,8 @@ class MCPClient(ToolClient):
81
81
  )
82
82
 
83
83
  # Log response details for debugging
84
- logger.info(f"Tool {tool.name} response status: {response.status_code}")
85
- logger.info(f"Tool {tool.name} response headers: {response.headers}")
84
+ logger.debug(f"Tool {tool.name} response status: {response.status_code}")
85
+ logger.debug(f"Tool {tool.name} response headers: {response.headers}")
86
86
 
87
87
  try:
88
88
  result = response.json()
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.2.0",
34
+ version="1.2.2",
35
35
  )
36
36
 
37
37
  # Initialize MCP server
@@ -411,7 +411,7 @@ class OpenRouterClient:
411
411
  # Log the request details
412
412
  logger.info(f"Sending parsed chat completion request to OpenRouter with model: {model or self.model}")
413
413
  logger.info(f"Message count: {len(messages)}")
414
- logger.info(f"Response format: {json.dumps(response_format_param, indent=2)}")
414
+ logger.debug(f"Response format: {json.dumps(response_format_param, indent=2)}")
415
415
 
416
416
  # Calculate total message size for logging
417
417
  total_size = sum(len(str(msg)) for msg in messages)
mbxai/tools/client.py CHANGED
@@ -298,7 +298,7 @@ class ToolClient:
298
298
 
299
299
  while True:
300
300
  # Get the model's response
301
- response = self._client.create_parsed(
301
+ response = self._client.parse(
302
302
  messages=messages,
303
303
  response_format=response_format,
304
304
  model=model,
mbxai/tools/types.py CHANGED
@@ -143,5 +143,5 @@ class Tool(BaseModel):
143
143
  }
144
144
  }
145
145
 
146
- logger.info(f"Created function definition for {self.name}: {json.dumps(function_def, indent=2)}")
146
+ logger.debug(f"(types) Created function definition for {self.name}: {json.dumps(function_def, indent=2)}")
147
147
  return function_def
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbxai
3
- Version: 1.2.0
3
+ Version: 1.2.2
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=JfbYRtbxrVf4tf03gAoAUdJuD9DAHhCaIHSgPc4Gnss,47
1
+ mbxai/__init__.py,sha256=CaI4CMV8Eswv3HMCO8KNKv5hrNhl0wFIHDHcX6sagwA,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
@@ -10,19 +10,19 @@ mbxai/examples/tool_client_example.py,sha256=9DNaejXLA85dPbExMiv5y76qlFhzOJF9E5E
10
10
  mbxai/examples/mcp/mcp_client_example.py,sha256=R4H-OU5FvGL41cCkTdLa3bocsmVJYQYOcOHRf61nbZc,2822
11
11
  mbxai/examples/mcp/mcp_server_example.py,sha256=nFfg22Jnc6HMW_ezLO3So1xwDdx2_rItj5CR-y_Nevs,3966
12
12
  mbxai/mcp/__init__.py,sha256=_ek9iYdYqW5saKetj4qDci11jxesQDiHPJRpHMKkxgU,175
13
- mbxai/mcp/client.py,sha256=eXIN2ebprNF5UgM1jb-4JkXmc-5toUhtlBNFKVU7FgY,5204
13
+ mbxai/mcp/client.py,sha256=rrUq2ObvUZOcz6fRyZ7ukB2rzUXIPqnQtBFwyt3VrJY,5216
14
14
  mbxai/mcp/example.py,sha256=oaol7AvvZnX86JWNz64KvPjab5gg1VjVN3G8eFSzuaE,2350
15
- mbxai/mcp/server.py,sha256=gB10CpbzibEt2XethhIyVLcfgu9GZXrSqKRcsjHfOug,3454
15
+ mbxai/mcp/server.py,sha256=779lPFAXYbOc3dBO-tK_PBCtICStyDc1zQaNdo1xfxU,3454
16
16
  mbxai/openrouter/__init__.py,sha256=Ito9Qp_B6q-RLGAQcYyTJVWwR2YAZvNqE-HIYXxhtD8,298
17
- mbxai/openrouter/client.py,sha256=P_TBb980EgEORGUz9cMqNAAs3R18EHFYgcE92TNI2bo,19881
17
+ mbxai/openrouter/client.py,sha256=au2VDSoIU6zKd1LIlQ6ObG_YpUK2AaG9bW-fBV2iVgk,19882
18
18
  mbxai/openrouter/config.py,sha256=Ia93s-auim9Sq71eunVDbn9ET5xX2zusXpV4JBdHAzs,3251
19
19
  mbxai/openrouter/models.py,sha256=b3IjjtZAjeGOf2rLsdnCD1HacjTnS8jmv_ZXorc-KJQ,2604
20
20
  mbxai/openrouter/schema.py,sha256=H_77ZrA9zmbX155bWpCJj1jehUyJPS0QybEW1IVAoe0,540
21
21
  mbxai/tools/__init__.py,sha256=ogxrHvgJ7OR62Lmd5x9Eh5d2C0jqWyQis7Zy3yKpZ78,218
22
- mbxai/tools/client.py,sha256=SxXSxvvglbzSaruqm_mebdky8RY2E3hW1VldQbfa0Cw,14914
22
+ mbxai/tools/client.py,sha256=YbQMWMw8c5XPwarT1u6TRgbsqYBJaTsO8j3EyCBoz9g,14906
23
23
  mbxai/tools/example.py,sha256=1HgKK39zzUuwFbnp3f0ThyWVfA_8P28PZcTwaUw5K78,2232
24
- mbxai/tools/types.py,sha256=pAoVuL7nKhvL3Iek0JheGfll4clsABFLl1CNjmiG3No,5866
25
- mbxai-1.2.0.dist-info/METADATA,sha256=DFvNZD8bWCBKWSBm3H5wnT1bGnrJagJj9qfJfwgodtY,4147
26
- mbxai-1.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
- mbxai-1.2.0.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
28
- mbxai-1.2.0.dist-info/RECORD,,
24
+ mbxai/tools/types.py,sha256=7gNIJBjzr9i4DT50OGLMjn3-6yBXqlK-kIz_RWcqywo,5875
25
+ mbxai-1.2.2.dist-info/METADATA,sha256=9lTianvqao9yH8Ix7X_KrYOhzuBL3yny0XxdexDPQTw,4147
26
+ mbxai-1.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ mbxai-1.2.2.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
28
+ mbxai-1.2.2.dist-info/RECORD,,
File without changes