Skip to content

Conversation

@sixlive
Copy link
Contributor

@sixlive sixlive commented Jan 25, 2026

Summary

Closes #801

Adds streaming support for Mistral AI reasoning models (e.g., magistral-small-latest).

  • Fixes "array to string conversion" error when streaming with reasoning models
  • Extracts thinking content from typed block arrays in delta.content
  • Emits proper thinking events (ThinkingStartEvent, ThinkingEvent, ThinkingCompleteEvent)
  • Maintains backward compatibility with standard models where content is a string

@kinsta
Copy link

kinsta bot commented Jan 25, 2026

Preview deployments for prism ⚡️

Status Branch preview Commit preview
✅ Ready Visit preview Visit preview

Commit: c6eb9024d334778abade82fc9eb9765d96375ca2

Deployment ID: 7d7840a6-974d-4f20-94d0-46e1a1af514a

Static site name: prism-97nz9

@sixlive sixlive merged commit 402711e into main Jan 25, 2026
14 checks passed
@sixlive sixlive deleted the fix-mistral-streaming-thinking branch January 25, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Streaming with Mistral AI reasoning models

2 participants