mbxai 1.2.0__tar.gz → 1.2.2__tar.gz

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.
Files changed (30) hide show
  1. {mbxai-1.2.0 → mbxai-1.2.2}/PKG-INFO +1 -1
  2. {mbxai-1.2.0 → mbxai-1.2.2}/pyproject.toml +1 -1
  3. {mbxai-1.2.0 → mbxai-1.2.2}/setup.py +1 -1
  4. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/__init__.py +1 -1
  5. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/mcp/client.py +3 -3
  6. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/mcp/server.py +1 -1
  7. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/openrouter/client.py +1 -1
  8. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/tools/client.py +1 -1
  9. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/tools/types.py +1 -1
  10. {mbxai-1.2.0 → mbxai-1.2.2}/.gitignore +0 -0
  11. {mbxai-1.2.0 → mbxai-1.2.2}/LICENSE +0 -0
  12. {mbxai-1.2.0 → mbxai-1.2.2}/README.md +0 -0
  13. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/core.py +0 -0
  14. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/examples/mcp/mcp_client_example.py +0 -0
  15. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/examples/mcp/mcp_server_example.py +0 -0
  16. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/examples/openrouter_example.py +0 -0
  17. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/examples/parse_example.py +0 -0
  18. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/examples/parse_tool_example.py +0 -0
  19. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/examples/request.json +0 -0
  20. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/examples/response.json +0 -0
  21. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/examples/send_request.py +0 -0
  22. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/examples/tool_client_example.py +0 -0
  23. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/mcp/__init__.py +0 -0
  24. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/mcp/example.py +0 -0
  25. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/openrouter/__init__.py +0 -0
  26. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/openrouter/config.py +0 -0
  27. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/openrouter/models.py +0 -0
  28. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/openrouter/schema.py +0 -0
  29. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/tools/__init__.py +0 -0
  30. {mbxai-1.2.0 → mbxai-1.2.2}/src/mbxai/tools/example.py +0 -0
@@ -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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mbxai"
7
- version = "1.2.0"
7
+ version = "1.2.2"
8
8
  authors = [
9
9
  { name = "MBX AI" }
10
10
  ]
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="mbxai",
5
- version="1.2.0",
5
+ version="1.2.2",
6
6
  author="MBX AI",
7
7
  description="MBX AI SDK",
8
8
  long_description=open("README.md").read(),
@@ -2,4 +2,4 @@
2
2
  MBX AI package.
3
3
  """
4
4
 
5
- __version__ = "1.2.0"
5
+ __version__ = "1.2.2"
@@ -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()
@@ -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)
@@ -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,
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes