use-mcp/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Glen Maddern 25857bc354 fix: Use extractReasoningMiddleware to properly parse thinking blocks
- Import extractReasoningMiddleware and wrapLanguageModel from AI SDK
- Wrap reasoning-capable models with extractReasoningMiddleware
- Use 'think' as tagName to parse <think> XML blocks from models
- Enable startWithReasoning option to handle models missing reasoning tags
- Extract reasoning from result.reasoning after stream completes
- Remove manual reasoning event handling and provider-specific config

This fixes the issue where thinking blocks appeared as raw XML tags
instead of parsed reasoning content. The middleware automatically
extracts reasoning from <think> tags and exposes it via result.reasoning.
2025-06-24 16:47:04 +10:00
..
chat-ui fix: Use extractReasoningMiddleware to properly parse thinking blocks 2025-06-24 16:47:04 +10:00
example-server/vengabus Added a simple example server for the demo 2025-06-24 16:19:32 +10:00
inspector Transfer from geelen/use-mcp 2025-06-18 21:46:43 +10:00