Skip to content

v0.1.1-ampeco

Choose a tag to compare

@sash sash released this 19 May 11:12
· 1441 commits to main since this release

Changes

Adds Patch 3 — OAuth access tokens (sk-ant-oat01-*) now use Authorization: Bearer … instead of x-api-key.

internal/runtime/executor/claude_executor.go (two call sites: PrepareRequest and applyClaudeHeaders):
detect the sk-ant-oat01- prefix and route those tokens via the Bearer header. Real sk-ant-api03-* API keys keep the existing x-api-key routing.

Three unit tests under internal/runtime/executor/claude_executor_test.go:

  • TestApplyClaudeHeaders_OAuthAccessTokenUsesBearerAuth
  • TestApplyClaudeHeaders_ApiKeyStillUsesXApiKey
  • TestClaudeExecutor_PrepareRequest_OAuthAccessTokenUsesBearerAuth

README rewritten to describe only what each patch does.

Patch series (cumulative)

  1. reasoning field fallback (OpenAI→Claude response translation)
  2. cache_control marker strip (Claude→OpenAI request translation)
  3. OAuth access tokens use Authorization: Bearer … (Claude executor auth) — new