Skip to content

0.2.0

Choose a tag to compare

@finnvoor finnvoor released this 26 Apr 12:00

What's new

  • Both AnthropicOAuthLanguageModel and CodexLanguageModel now expose CustomGenerationOptions accessible via the standard options[custom: ModelType.self] subscript.
  • Extended thinking support for Anthropic (thinking.budgetTokens), with thinking and redacted_thinking content blocks round-tripping verbatim through tool loops.
  • Reasoning support for Codex (reasoning.effort + reasoning.summary), with encrypted reasoning items captured from the response and replayed in subsequent iterations of the in-flight tool loop (required because store: false drops them server-side).
  • extraBody escape hatch on both, with reserved-key filtering so callers can't accidentally break the OAuth request shape or the cache contract.

Request bodies are still encoded with sorted keys so the cache prefix stays byte-stable across calls in a session.