Skip to content

fix: support <think> tag compatibility#100

Merged
lich0821 merged 4 commits intolich0821:masterfrom
ferstar:think-tag-compat-upstream
Jan 26, 2026
Merged

fix: support <think> tag compatibility#100
lich0821 merged 4 commits intolich0821:masterfrom
ferstar:think-tag-compat-upstream

Conversation

@ferstar
Copy link
Contributor

@ferstar ferstar commented Jan 25, 2026

Closes #99

What

  • Parse <think> tags into Claude thinking/text blocks (OpenAI Chat + Responses)
  • Stream thinking incrementally without leaking tags
  • Share think-tag parsing helpers to reduce duplication

Tests

  • go test ./internal/transformer/convert

@lich0821 lich0821 merged commit cbc0711 into lich0821:master Jan 26, 2026
6 checks passed
@ferstar ferstar deleted the think-tag-compat-upstream branch February 5, 2026 18:54
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.

Handle <think> tags in OpenAI/Responses streaming

2 participants