picoclaw/pkg/providers/common
BeaconCat aeba8f7142 feat(providers): add streaming reasoning_content and multimodal media support
- openai_compat: extract reasoning_content from streaming SSE deltas,
  benefiting providers like DeepSeek, Mimo, and Kimi that return
  chain-of-thought content in streamed chunks

Media handling refactor (addresses review feedback):
- agent: centralize video/audio inline decisions in resolveMediaRefs
  with provider capability gating via VideoCapable/AudioCapable interfaces
- agent: add mediaInlinePolicy + mediaInlinePolicyFromProvider() to probe
  provider capabilities before encoding media as data URLs
- agent: add size guard via encodeMediaToDataURL (respects MaxMediaSize)
- providers: add VideoCapable and AudioCapable interfaces (same pattern as
  ThinkingCapable/NativeSearchCapable)
- openai_compat: implement SupportsVideo/SupportsAudio for Mimo, Qwen,
  OpenAI (host and providerName detection)
- httpapi: delegate SupportsVideo/SupportsAudio through HTTPProvider
- httpapi: GeminiProvider declares video + audio support
- common: add video_url serialization in SerializeMessages (now reachable
  via the centralized pipeline); fix missing continue after audio branch
- Tests for capability detection, inline policy, oversized media skip,
  and provider-unsupported media fallback to path tags
2026-05-04 12:02:42 +08:00
..
anthropic_common.go Deduplicate further functions 2026-04-23 05:50:37 +00:00
anthropic_common_test.go Deduplicate further functions 2026-04-23 05:50:37 +00:00
common.go feat(providers): add streaming reasoning_content and multimodal media support 2026-05-04 12:02:42 +08:00
common_test.go feat(providers): add streaming reasoning_content and multimodal media support 2026-05-04 12:02:42 +08:00
google_common.go Deduplicate further functions 2026-04-23 05:50:37 +00:00
google_common_test.go Deduplicate further functions 2026-04-23 05:50:37 +00:00
google_schema.go feat(tool): tool schema semplification 2026-04-27 21:10:30 +02:00
google_schema_test.go fix lint 2026-04-26 22:33:35 +02:00
tool_schema_transform.go feat(tool): tool schema semplification 2026-04-27 21:10:30 +02:00