Add 6 new endpoints, streaming usage, and rate limiting headers#222
Merged
Conversation
commit: |
…e embed, ElevenLabs TTS
cf0bd9b to
8f720d3
Compare
pull Bot
pushed a commit
to TheTechOddBug/aimock
that referenced
this pull request
May 27, 2026
The OpenAI image edit endpoint is /v1/images/edits (plural), but PR CopilotKit#222 (shipped in v1.25.0) registered the route as /v1/images/edit (singular). Real OpenAI SDK clients hit a 404 against aimock. Updates the canonical path constant in server.ts, the OpenAI-compat suffix list, the in-source comments and default fallbacks in images.ts, the test suite (renamed image-edit.test.ts -> image-edits.test.ts and hits the new path; one assertion confirms the legacy singular path is now 404), the DRIFT.md route table, the competitive-matrix keywords, and the README multimedia summary. Closes CopilotKit#221
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
6 new endpoints:
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/api/embeddings— supportspromptandinput(string or array)/v2/embed— multi-text, configurable embedding types/v1/text-to-speech/{voice_id}— binary audio with voice routing3 cross-cutting features:
stream_options.include_usage)Retry-After,x-ratelimit-*)Housekeeping:
Test plan
🤖 Generated with Claude Code