Skip to content

Feat/v0.11.0 anthropic api#12

Merged
MaxWD merged 5 commits into
mainfrom
feat/v0.11.0-anthropic-api
May 24, 2026
Merged

Feat/v0.11.0 anthropic api#12
MaxWD merged 5 commits into
mainfrom
feat/v0.11.0-anthropic-api

Conversation

@MaxWD
Copy link
Copy Markdown
Owner

@MaxWD MaxWD commented May 24, 2026

Summary

Type

  • feat — new user-visible functionality
  • fix — bug fix
  • docs — documentation only
  • refactor — internal change without behaviour change
  • test — tests only
  • chore — build, CI, dependencies

Related issue

Closes #

Checklist

  • go build ./... succeeds.
  • go test -race ./... passes.
  • gofmt -l . returns no files.
  • go vet ./... is clean.
  • golangci-lint run returns no new issues.
  • Tests added or updated for new behaviour.
  • CHANGELOG.md updated under [Unreleased] if user-visible.
  • Documentation in docs/ updated if architecture, API, or SRS requirements change.
  • No secrets, API keys, or personal data in the diff.

Notes for reviewers

MaxWD and others added 5 commits May 24, 2026 18:31
…tion

Add POST /v1/messages endpoint for Anthropic SDK clients. The `type` field
in backends config becomes a protocol selector (openai|anthropic|ollama).
Cross-protocol translation works for all 4 combinations: requests and
responses (including streaming) are automatically converted between
OpenAI Chat Completions and Anthropic Messages formats.

Key changes:
- New Anthropic backend client (backends/anthropic.go) with x-api-key auth
- Translation layer (internal/api/translate/) for request, response, and
  streaming SSE format conversion between OpenAI and Anthropic
- Dual auth: both Authorization: Bearer and x-api-key accepted on all endpoints
- /v1/completions and /v1/embeddings return error for Anthropic-only backends
- Extended thinking stripped in cross-protocol mode, passthrough in same-protocol

Version: v0.11.0

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Reflect v0.11.0 multi-protocol capabilities: dual auth, /v1/messages
endpoint, cross-protocol translation, Anthropic backend config example,
updated architecture diagrams.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Same deliberate pattern as proxyHandler — uses context.Background()
to survive client disconnects during DB writes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Anthropic Messages API, cross-protocol translation, dual auth,
per-backend protocol selector, translation layer, updated docs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Step 3 now mandates updating CHANGELOG.md (Added/Changed/Fixed/Removed
sections + compare links) before creating the PR — prevents the omission
that happened in v0.11.0.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@MaxWD MaxWD merged commit 276a864 into main May 24, 2026
5 checks passed
@MaxWD MaxWD deleted the feat/v0.11.0-anthropic-api branch May 24, 2026 13:52
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.

1 participant