Repository navigation
Conversation
…ream-attachment-docs
…ile-tool-continuations
…-output-attachments
…ream-profile-anthropic
…ream-profile-anthropic
…ream-profile-anthropic
…stream-profile-anthropic
…stream-tool-output-attachments
…stream-session-properties
…stream-dynamic-profiles
…stream-profile-tool-continuations
…stream-profile-anthropic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Anthropic integration for #315's shared Compatibility SPI. Provider PRs are siblings, not a chain.
Depends on #315 2e96883 and #312 aed9f2a, transitively #314/#313 and main's #352. Isolated layer comparison. The comparison also includes the attachment dependency.
Ordinary non-streaming remains one request/return and does not build unused in-flight messages. Profile non-streaming continues as already published; its in-flight encoder uses #312's Tool-only MIME placeholder. Thinking/signatures and file-deletion/Codable/native attachment replay are preserved.
Upstream synchronization
Normal history-preserving synchronization with upstream main 7013d51, retaining #351 typed numeric bounds, #336 final-request usage and #340 HTTPTransport, along with #297/#325/#331/#343/#352/#354/#356. No force-push, new checkout or replacement PR.
All HTTP requests use the injected HTTPTransport, including continuations; upstream's deprecated session initializers remain available. Response/snapshot usage reports the final request, while the session counts every request, including model handoffs. Prefix accounting uses the complete internal request total, not only the previous final value.
Fresh local verification (2026-10-22)
Head a9c3ec2.
CI=1 GIT_CONFIG_GLOBAL=/dev/null swift test: 933 tests / 96 suites passed. Strict formatting/diff checks passed. These are compile/offline tests, not live API, model-weight or Apple Intelligence inference acceptance.The offline suites retain streaming/non-streaming history, callback, reused-ID and handoff accounting regressions. Constructor visibility is still SPI; no new PR or force-push.