ollama/anthropic
ParthSareen fa42204da8 anthropic: use pointer types for Text and Thinking fields
Use *string instead of string for Text and Thinking fields in ContentBlock
so that omitempty works correctly:
- nil pointer: field omitted from JSON (for blocks that don't use it)
- ptr(""): field present as "" (for SDK streaming accumulation)
- ptr("content"): field present with content

This keeps the JSON output clean (text blocks don't have thinking field,
thinking blocks don't have text field) while still satisfying SDK
requirements for field presence during streaming.
2026-01-05 19:19:34 -08:00
..
anthropic.go anthropic: use pointer types for Text and Thinking fields 2026-01-05 19:19:34 -08:00
anthropic_test.go anthropic: use pointer types for Text and Thinking fields 2026-01-05 19:19:34 -08:00