-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: connectedagents-ai/client-python
base: main
head repository: mistralai/client-python
compare: main
- 6 commits
- 50 files changed
- 8 contributors
Commits on May 5, 2026
-
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].
Configuration menu - View commit details
-
Copy full SHA for 09882f6 - Browse repository at this point
Copy the full SHA 09882f6View commit details
Commits on May 6, 2026
-
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
Configuration menu - View commit details
-
Copy full SHA for 109ee43 - Browse repository at this point
Copy the full SHA 109ee43View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8e3a84 - Browse repository at this point
Copy the full SHA b8e3a84View commit details -
ci: add required examples gate (mistralai#513)
* ci: add required examples gate * ci: add required lint gates
Configuration menu - View commit details
-
Copy full SHA for 77ff32a - Browse repository at this point
Copy the full SHA 77ff32aView commit details
Commits on May 7, 2026
-
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>
Configuration menu - View commit details
-
Copy full SHA for 99fb677 - Browse repository at this point
Copy the full SHA 99fb677View commit details -
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>Configuration menu - View commit details
-
Copy full SHA for 7ebe84b - Browse repository at this point
Copy the full SHA 7ebe84bView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...main