feat: add CAMB AI API compatibility layer#8753
Open
neilruaro-camb wants to merge 2 commits intomudler:masterfrom
Open
feat: add CAMB AI API compatibility layer#8753neilruaro-camb wants to merge 2 commits intomudler:masterfrom
neilruaro-camb wants to merge 2 commits intomudler:masterfrom
Conversation
✅ Deploy Preview for localai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Add CAMB AI-compatible API endpoints to LocalAI, enabling apps using the CAMB AI SDK/API to use LocalAI as a drop-in local replacement. Follows the existing ElevenLabs integration pattern (schema structs, endpoint handlers, route registration). Includes e2e tests covering all endpoints via the mock backend.
Tested against the real camb-sdk Python package. Fixes: - list-voices returns flat array (SDK expects list, not wrapped object) - text-to-sound returns task_id JSON (SDK expects OrchestratorPipelineCallResult) - translated-tts returns task_id JSON (SDK expects CreateTranslatedTtsOut) - translation/stream returns JSON (SDK parses response as JSON) - transcribe accepts media_url form field without requiring file upload
4851502 to
733d573
Compare
Contributor
|
Hello! Thank you for your contribution. Before we can proceed with this PR, we need to have a discussion about the proposed changes. LocalAI doesn't support cloud-based backends, and there was no issue opened for this feature prior to the PR. We encourage contributors to first open an issue to discuss their proposed changes with the maintainers. Could you please open an issue describing your use case and proposed implementation? Once we've had a chance to discuss and align on the direction, we can then continue reviewing this PR. Thank you for your understanding! |
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
camb-sdkPython package to ensure SDK compatibilityEndpoints
/apis/tts-streamModelTTSStream/ModelTTSFLAG_TTS/apis/ttsModelTTS(async)FLAG_TTS/apis/tts/:task_id/apis/translated-ttsModelTTSFLAG_CHAT/apis/translateFLAG_CHAT/apis/translation/streamFLAG_CHAT/apis/transcribeModelTranscriptionFLAG_TRANSCRIPT/apis/text-to-soundSoundGenerationFLAG_SOUND_GENERATION/apis/list-voices/apis/create-custom-voice/apis/audio-separation