mirror of
https://github.com/jwadow/kiro-gateway.git
synced 2026-04-25 01:15:57 +03:00
[PR #21] [CLOSED] feat: add Anthropic (Claude) API compatibility #58
Labels
No labels
bug
bug
enhancement
enhancement
fixed
fixed
invalid
needs-info
needs-testing
pull-request
question
upstream
wontfix
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/kiro-gateway-jwadow#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jwadow/kiro-gateway/pull/21
Author: @Indokq
Created: 1/8/2026
Status: ❌ Closed
Base:
main← Head:feat/anthropic-compat-jwadow📝 Commits (3)
cc21188feat: add Anthropic API compatibility30c80e5fix: stabilize auth and config for tests0c796eafix: close clients and aggregate tool call deltas📊 Changes
9 files changed (+1147 additions, -8 deletions)
View changed files
➕
kiro_gateway/anthropic_converters.py(+277 -0)➕
kiro_gateway/anthropic_models.py(+98 -0)➕
kiro_gateway/anthropic_streaming.py(+183 -0)📝
kiro_gateway/config.py(+1 -1)📝
kiro_gateway/routes.py(+355 -1)📝
main.py(+8 -6)➕
tests/unit/test_anthropic_converters.py(+73 -0)➕
tests/unit/test_anthropic_routes.py(+107 -0)➕
tests/unit/test_anthropic_streaming.py(+45 -0)📄 Description
Summary
Adds an Anthropic/Claude-compatible API surface on top of the existing OpenAI-compatible gateway using header-based routing (presence of the anthropic-version header to disambiguate /v1/models) and dual auth header support (Authorization: Bearer ... or x-api-key).
API additions
Implementation notes
Test/Dev stability
Verification
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.