Skip to content

Extract lastSafeIndex into shared free function - #179

Merged
stikves merged 5 commits into
apple:mainfrom
stikves:sukru/extract-marker
Aug 17, 2026
Merged

Extract lastSafeIndex into shared free function#179
stikves merged 5 commits into
apple:mainfrom
stikves:sukru/extract-marker

Conversation

@stikves

@stikves stikves commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Both ThinkTagParser and ToolCallParser had identical private implementations of the streaming marker hold-back logic.

Pull itinto a module-internal free function in StreamingMarkerMatcher.swift to eliminate the duplication.

Comment thread swift/Sources/CoreAILanguageModels/StreamingMarkerMatcher.swift
Comment thread swift/Tests/LanguageModelsTests/StreamingMarkerMatcherTests.swift
@stikves stikves self-assigned this Aug 17, 2026
@stikves
stikves merged commit ccd1ef3 into apple:main Aug 17, 2026
3 checks passed
@stikves
stikves deleted the sukru/extract-marker branch August 17, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants