mbxai 0.7.0__tar.gz → 0.7.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-0.7.0 → mbxai-0.7.2}/.gitignore +1 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/PKG-INFO +1 -1
- {mbxai-0.7.0 → mbxai-0.7.2}/pyproject.toml +1 -1
- {mbxai-0.7.0 → mbxai-0.7.2}/setup.py +1 -1
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/__init__.py +1 -1
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/mcp/server.py +1 -1
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/openrouter/client.py +3 -3
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/tools/client.py +2 -2
- mbxai-0.7.0/uv.lock +0 -1015
- {mbxai-0.7.0 → mbxai-0.7.2}/LICENSE +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/README.md +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/core.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/mcp/__init__.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/mcp/client.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/mcp/example.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/openrouter/__init__.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/openrouter/config.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/openrouter/models.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/tools/__init__.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/tools/example.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/src/mbxai/tools/types.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/tests/test_core.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/tests/test_mcp.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/tests/test_openrouter.py +0 -0
- {mbxai-0.7.0 → mbxai-0.7.2}/tests/test_tools.py +0 -0
@@ -206,7 +206,7 @@ class OpenRouterClient:
|
|
206
206
|
logger.info(f"Total message size: {total_size} bytes")
|
207
207
|
|
208
208
|
response = self._client.responses.create(
|
209
|
-
|
209
|
+
input=messages,
|
210
210
|
model=model or self.model,
|
211
211
|
stream=stream,
|
212
212
|
**kwargs,
|
@@ -216,8 +216,8 @@ class OpenRouterClient:
|
|
216
216
|
logger.info("Received response from OpenRouter")
|
217
217
|
if hasattr(response, 'output'):
|
218
218
|
logger.info(f"Response output length: {len(response.output) if response.output else 0}")
|
219
|
-
if hasattr(response, '
|
220
|
-
logger.info(f"Response
|
219
|
+
if hasattr(response, 'output_text'):
|
220
|
+
logger.info(f"Response output_text length: {len(response.output_text) if response.output_text else 0}")
|
221
221
|
|
222
222
|
return response
|
223
223
|
|
@@ -224,7 +224,7 @@ class ToolClient:
|
|
224
224
|
return response
|
225
225
|
|
226
226
|
# Parse the response output
|
227
|
-
output = response.output
|
227
|
+
output = response.output if response.output else response.output_text
|
228
228
|
|
229
229
|
# Get all function calls from the output
|
230
230
|
tool_calls = []
|
@@ -286,7 +286,7 @@ class ToolClient:
|
|
286
286
|
# Continue the conversation after processing all calls
|
287
287
|
continue
|
288
288
|
else:
|
289
|
-
logger.info("
|
289
|
+
logger.info("Final response")
|
290
290
|
return response
|
291
291
|
|
292
292
|
async def parse(
|