Skip to content

feat(pool): add Cursor-compatible chat completions - #2

Open
wtfsayo wants to merge 2 commits into
codex/claude-code-client-compatfrom
codex/cursor-chat-completions-compat
Open

feat(pool): add Cursor-compatible chat completions#2
wtfsayo wants to merge 2 commits into
codex/claude-code-client-compatfrom
codex/cursor-chat-completions-compat

Conversation

@wtfsayo

@wtfsayo wtfsayo commented Aug 22, 2026

Copy link
Copy Markdown

Summary

  • expose POST /v1/chat/completions through the pool edge and broker proxy
  • translate OpenAI chat messages, tools, tool results, JSON responses, errors, and SSE chunks to and from Anthropic Messages
  • map Cursor-safe anthropic:* model aliases to canonical Claude models
  • meter OpenAI Chat Completions usage consistently at the pool meter and edge

This is stacked on #1 because subscription-backed requests reuse its Claude Code-compatible upstream shaping.

Verification

  • broker proxy: 42 tests passed
  • pool meter usage unit: 13 tests passed
  • pool edge: 97 tests passed
  • JavaScript syntax checks passed

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