mbxai 0.6.13__py3-none-any.whl → 0.6.14__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.
@@ -245,7 +245,6 @@ class OpenRouterClient:
245
245
  response_format: type[BaseModel],
246
246
  *,
247
247
  model: Optional[Union[str, OpenRouterModel]] = None,
248
- stream: bool = False,
249
248
  **kwargs: Any,
250
249
  ) -> Any:
251
250
  """Create a chat completion and parse the response.
@@ -254,7 +253,6 @@ class OpenRouterClient:
254
253
  messages: list of messages
255
254
  response_format: Pydantic model to parse the response into
256
255
  model: Optional model override
257
- stream: Whether to stream the response
258
256
  **kwargs: Additional parameters
259
257
 
260
258
  Returns:
@@ -279,7 +277,6 @@ class OpenRouterClient:
279
277
  messages=messages,
280
278
  model=model or self.model,
281
279
  response_format=response_format,
282
- stream=stream,
283
280
  **kwargs,
284
281
  )
285
282
 
mbxai/tools/client.py CHANGED
@@ -312,7 +312,6 @@ class ToolClient:
312
312
  response_format: type[T],
313
313
  *,
314
314
  model: str | None = None,
315
- stream: bool = False,
316
315
  **kwargs: Any,
317
316
  ) -> Any:
318
317
  """Chat with the model and parse the response into a Pydantic model.
@@ -321,13 +320,11 @@ class ToolClient:
321
320
  messages: The conversation messages
322
321
  response_format: The Pydantic model to parse the response into
323
322
  model: Optional model override
324
- stream: Whether to stream the response
325
323
  **kwargs: Additional parameters for the chat completion
326
324
 
327
325
  Returns:
328
326
  The parsed response from the model
329
327
  """
330
- # First, use chat to handle any tool calls
331
328
  tools = [tool.to_openai_function() for tool in self._tools.values()]
332
329
 
333
330
  if tools:
@@ -341,13 +338,9 @@ class ToolClient:
341
338
  messages=messages,
342
339
  response_format=response_format,
343
340
  model=model,
344
- stream=stream,
345
341
  **kwargs,
346
342
  )
347
343
 
348
- if stream:
349
- return response
350
-
351
344
  message = response.choices[0].message
352
345
  # Add the assistant's message with tool calls
353
346
  assistant_message = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mbxai
3
- Version: 0.6.13
3
+ Version: 0.6.14
4
4
  Summary: MBX AI SDK
5
5
  Project-URL: Homepage, https://www.mibexx.de
6
6
  Project-URL: Documentation, https://www.mibexx.de
@@ -5,14 +5,14 @@ mbxai/mcp/client.py,sha256=B8ZpH-uecmTCgoDw65LwwVxsFWVoX-08t5ff0hOEPXk,6011
5
5
  mbxai/mcp/example.py,sha256=oaol7AvvZnX86JWNz64KvPjab5gg1VjVN3G8eFSzuaE,2350
6
6
  mbxai/mcp/server.py,sha256=T0-Y7FeHRFqSTp2ERU96fOQlQJKjMFxg8oqC4dzBmBA,3463
7
7
  mbxai/openrouter/__init__.py,sha256=Ito9Qp_B6q-RLGAQcYyTJVWwR2YAZvNqE-HIYXxhtD8,298
8
- mbxai/openrouter/client.py,sha256=zcvs0LGFQy1WuPaW1aGi7MM5Ho-5yXrjhrgsfyZrO0A,13641
8
+ mbxai/openrouter/client.py,sha256=nusxYObyLAMGQd6J9u2uLfkRXyE5kZmdIGdlU-76HPo,13529
9
9
  mbxai/openrouter/config.py,sha256=Ia93s-auim9Sq71eunVDbn9ET5xX2zusXpV4JBdHAzs,3251
10
10
  mbxai/openrouter/models.py,sha256=b3IjjtZAjeGOf2rLsdnCD1HacjTnS8jmv_ZXorc-KJQ,2604
11
11
  mbxai/tools/__init__.py,sha256=QUFaXhDm-UKcuAtT1rbKzhBkvyRBVokcQIOf9cxIuwc,160
12
- mbxai/tools/client.py,sha256=MnBUjwb20oSSBrdj6pe6X_z6lKLXhSNyFTxP67mbBas,17801
12
+ mbxai/tools/client.py,sha256=qOf8MiQ8_flPUNiMioOyjeEaV8rN1EBWb98T8qTC3D4,17582
13
13
  mbxai/tools/example.py,sha256=1HgKK39zzUuwFbnp3f0ThyWVfA_8P28PZcTwaUw5K78,2232
14
14
  mbxai/tools/types.py,sha256=fo5t9UbsHGynhA88vD_ecgDqL8iLvt2E1h1ym43Rrgk,745
15
- mbxai-0.6.13.dist-info/METADATA,sha256=2f-u1N_77PMxGlWn39Gkyu9Y5tZ7yLH_vWtl_lwR9WI,4108
16
- mbxai-0.6.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- mbxai-0.6.13.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
18
- mbxai-0.6.13.dist-info/RECORD,,
15
+ mbxai-0.6.14.dist-info/METADATA,sha256=2k-814igc4Y73kl6bhqN_P2-92TWbZwOd9m2n43LYH4,4108
16
+ mbxai-0.6.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ mbxai-0.6.14.dist-info/licenses/LICENSE,sha256=hEyhc4FxwYo3NQ40yNgZ7STqwVk-1_XcTXOnAPbGJAw,1069
18
+ mbxai-0.6.14.dist-info/RECORD,,
File without changes