Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: connectedagents-ai/client-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: mistralai/client-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 6 commits
  • 50 files changed
  • 8 contributors

Commits on May 5, 2026

  1. docs(examples): add chat reasoning_effort examples (mistralai#511)

    * docs(examples): add chat reasoning_effort examples
    
    Add four examples in examples/mistral/chat/ demonstrating reasoning_effort
    on mistral-medium-3-5:
    
    - reasoning_response_shape.py: dump the raw response shape for
      reasoning_effort="high" vs "none" so users see the ThinkChunk /
      TextChunk JSON before consuming it.
    - reasoning.py: single-turn call, iterate ThinkChunk and TextChunk in
      message.content.
    - reasoning_with_streaming.py: handle streaming deltas where chunks
      arrive as ThinkChunk lists during thinking and as plain string
      fragments after thinking ends.
    - reasoning_multi_turn.py: 3-turn math chain run with two replay
      strategies (keep vs drop ThinkChunks) and prints token usage so
      the cost difference is visible.
    
    * address review: keep ThinkChunks for MM3.5; use timeout_ms
    
    - reasoning_multi_turn.py: drop the keep-vs-drop comparison and
      recommend keeping ThinkChunks across turns. Per reviewer feedback,
      dropping the reasoning trace degrades MM3.5 performance.
    - All four files: replace httpx.Client(timeout=...) with the SDK's
      timeout_ms parameter; remove the httpx import.
    
    * fix lint: remove unused ThinkChunk import in reasoning_multi_turn
    
    * simplify multi-turn: append response.choices[0].message directly
    
    Avoids the unnecessary AssistantMessage(content=content) re-wrap and
    forwards any future fields on AssistantMessage automatically.
    
    Verified end-to-end: 3/3 runs of the math chain produce 391 -> 1173 ->
    1073, and history inspection confirms each AssistantMessage slot
    preserves [ThinkChunk, TextChunk].
    andreaonofrei01 authored May 5, 2026
    Configuration menu
    Copy the full SHA
    09882f6 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2026

  1. Workflows: Event decryption (mistralai#510)

    * Workflows: Event decryption
    
    * Improvements
    
    * Improvements
    
    * Decryption for event stream endpoint
    
    * Add new route to stream decoding
    
    * Fix a generation issue
    
    * Do not trigger SDK generation
    mistralai-nfau authored May 6, 2026
    Configuration menu
    Copy the full SHA
    109ee43 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b8e3a84 View commit details
    Browse the repository at this point in the history
  3. ci: add required examples gate (mistralai#513)

    * ci: add required examples gate
    
    * ci: add required lint gates
    louis-sanna-dev authored May 6, 2026
    Configuration menu
    Copy the full SHA
    77ff32a View commit details
    Browse the repository at this point in the history

Commits on May 7, 2026

  1. feat: support per-instance OpenTelemetry TracerProvider via set_trace…

    …r_provider (mistralai#517)
    
    Add a set_tracer_provider(client, provider) helper that attaches a custom
    TracerProvider to a specific Mistral client instance. Spans produced by
    that client are emitted through the custom provider; other instances
    continue using the global provider.
    
    Usage:
        from mistralai.extra.observability import set_tracer_provider
        set_tracer_provider(client, my_provider)
    
    Generated by Mistral Vibe.
    
    Co-authored-by: Mistral Vibe <vibe@mistral.ai>
    rbarbadillo and mistral-vibe authored May 7, 2026
    Configuration menu
    Copy the full SHA
    99fb677 View commit details
    Browse the repository at this point in the history
  2. chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK [speakeasy-sdk…

    …-regen-25492313905] 2.4.5 (mistralai#518)
    
    * ## Python SDK Changes:
    * `mistral.workflows.executions.stream()`:  `response.[].data.data.union(CustomTaskInProgressResponse).attributes.payload` **Changed** (Breaking ⚠️)
    * `mistral.workflows.events.get_stream_events()`:  `response.[].data.data` **Changed** (Breaking ⚠️)
    * `mistral.workflows.events.get_workflow_events()`:  `response.events[]` **Changed** (Breaking ⚠️)
    * `mistral.events.get_stream_events()`:  `response.[].data.data.union(CustomTaskInProgressResponse).attributes.payload` **Changed** (Breaking ⚠️)
    * `mistral.events.get_workflow_events()`:  `response.events[]` **Changed** (Breaking ⚠️)
    * `mistral.beta.connectors.get_authentication_methods()`:  `response.[].has_default_credentials` **Added**
    
    * chore: align pyproject.toml and uv.lock to version 2.4.5
    
    ---------
    
    Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
    Co-authored-by: GitHub Action <action@github.com>
    3 people authored May 7, 2026
    Configuration menu
    Copy the full SHA
    7ebe84b View commit details
    Browse the repository at this point in the history
Loading