You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): improve Anthropic adapter transparency and compatibility (#66)
* fix(api): improve Anthropic adapter transparency and compatibility
- Forward client User-Agent to upstream providers for gateway transparency
- Add additionalProperties: true to Anthropic TypeBox validation schemas
so tools, system prompts, and content blocks with cache_control are accepted
- Make thinking block signature optional in validation schema
- Append /v1/ to Anthropic upstream base URL to match actual API endpoint
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix(api): preserve cache_control and signature through Anthropic adapter pipeline
- Add cacheControl to InternalToolDefinition so tool-level cache_control
is forwarded to upstream (was silently dropped after validation)
- Add signature to ThinkingContentBlock so thinking blocks can be
replayed in multi-turn conversations
- Normalize Anthropic baseUrl to handle both with and without /v1 suffix
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix(api): preserve signature in Anthropic response and streaming pipeline
- Extract signature from thinking blocks in non-streaming response parsing
- Add signature_delta handling in streaming response parser and serializer
- Add signature field to AnthropicStreamEvent delta and InternalStreamChunk
- Add clarifying comment on baseUrl /v1 normalization
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor(api): add tLooseObject helper to reduce schema boilerplate
Extract repeated t.Object(..., { additionalProperties: true }) pattern
into a reusable tLooseObject helper in the Anthropic Messages endpoint.
Reduces 13 occurrences to a single definition.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments