Skip to content

Add 6 new endpoints, streaming usage, and rate limiting headers#222

Merged
jpr5 merged 5 commits into
mainfrom
blitz/launch-gaps/integration
May 18, 2026
Merged

Add 6 new endpoints, streaming usage, and rate limiting headers#222
jpr5 merged 5 commits into
mainfrom
blitz/launch-gaps/integration

Conversation

@jpr5
Copy link
Copy Markdown
Contributor

@jpr5 jpr5 commented May 18, 2026

Summary

6 new endpoints:

  • Gemini embedContent — Google embedding users were getting 404
  • /v1/images/edit + /v1/images/variations — multipart, closes Support for /images/edit #221
  • /v1/audio/translations — reuses transcription handler
  • Ollama /api/embeddings — supports prompt and input (string or array)
  • Cohere /v2/embed — multi-text, configurable embedding types
  • ElevenLabs /v1/text-to-speech/{voice_id} — binary audio with voice routing

3 cross-cutting features:

  • Streaming usage chunks (stream_options.include_usage)
  • Automatic token usage estimation (~4 chars/token heuristic)
  • Rate limiting headers on 429 responses (Retry-After, x-ratelimit-*)

Housekeeping:

  • Version bump to 1.25.0
  • CHANGELOG updated
  • Docs, README, DRIFT.md, competitive matrix updated

Test plan

  • 3088 tests pass (96 new across 11 test files)
  • TypeScript clean
  • Lint + format + build clean
  • CR converged Round 2 (8 findings fixed, 7/7 confirmed)
  • HTML validated
  • Drift tests (gated behind API keys)

🤖 Generated with Claude Code

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 18, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@copilotkit/aimock@222

commit: 9a1f6c7

@jpr5 jpr5 force-pushed the blitz/launch-gaps/integration branch from cf0bd9b to 8f720d3 Compare May 18, 2026 18:16
@jpr5 jpr5 changed the title Close launch readiness gaps: 6 new endpoints + streaming usage + rate limiting Add 6 new endpoints, streaming usage, and rate limiting headers May 18, 2026
@jpr5 jpr5 merged commit ec2d0b8 into main May 18, 2026
23 checks passed
@jpr5 jpr5 deleted the blitz/launch-gaps/integration branch May 18, 2026 18:33
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.

Support for /images/edit

1 participant