mbxai 1.0.1__tar.gz → 1.0.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.
- {mbxai-1.0.1 → mbxai-1.0.2}/PKG-INFO +1 -1
- {mbxai-1.0.1 → mbxai-1.0.2}/pyproject.toml +1 -1
- {mbxai-1.0.1 → mbxai-1.0.2}/setup.py +1 -1
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/__init__.py +1 -1
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/mcp/server.py +1 -1
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/openrouter/client.py +5 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/.gitignore +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/LICENSE +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/README.md +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/core.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/examples/mcp/mcp_client_example.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/examples/mcp/mcp_server_example.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/examples/openrouter_example.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/examples/parse_example.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/examples/parse_tool_example.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/examples/tool_client_example.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/mcp/__init__.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/mcp/client.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/mcp/example.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/openrouter/__init__.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/openrouter/config.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/openrouter/models.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/tools/__init__.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/tools/client.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/tools/example.py +0 -0
- {mbxai-1.0.1 → mbxai-1.0.2}/src/mbxai/tools/types.py +0 -0
@@ -274,6 +274,11 @@ class OpenRouterClient:
|
|
274
274
|
|
275
275
|
logger.info(f"Response type: {type(response)}")
|
276
276
|
logger.info(f"Response attributes: {dir(response)}")
|
277
|
+
|
278
|
+
if not hasattr(response, 'choices'):
|
279
|
+
logger.error(f"Response missing 'choices' attribute. Available attributes: {dir(response)}")
|
280
|
+
raise OpenRouterAPIError("Invalid response format: missing 'choices' attribute")
|
281
|
+
|
277
282
|
logger.info(f"Received response from OpenRouter: {len(response.choices)} choices")
|
278
283
|
|
279
284
|
return response
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|