[Inference Provider]: Add Oxlo.ai as an inference provider#2111
Open
ms-shashank wants to merge 2 commits into
Open
[Inference Provider]: Add Oxlo.ai as an inference provider#2111ms-shashank wants to merge 2 commits into
ms-shashank wants to merge 2 commits into
Conversation
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.
Add OxloAI as an Inference Provider
Oxlo.ai is a developer-first AI inference platform with request-based pricing (flat fee per API call, not per token). We serve 36+ open-source models including Qwen 3 32B, Llama 3.3 70B, DeepSeek R1, Mistral, Gemma 3, and Whisper.
What this PR adds
packages/inference/src/providers/oxloai.ts— Provider implementation for conversational and text-to-image taskstypes.ts,consts.ts, andgetProviderHelper.tsAPI Compatibility
OxloAI is fully OpenAI SDK compatible:
POST /v1/chat/completionsPOST /v1/images/generationsOrganization
We're submitting this to get the technical integration reviewed. We have 36 models ready to map using the Model Mapping API once approved.
Note
Medium Risk
Adds a new external provider integration with custom request/response shaping for
text-to-image, which could surface runtime issues if OxloAI’s API behavior differs from assumptions. Changes are otherwise additive and gated behind selecting the newoxloaiprovider.Overview
Adds OxloAI as a new inference provider option and wires it into provider selection/typing (
INFERENCE_PROVIDERS,PROVIDERS_HUB_ORGS,HARDCODED_MODEL_INFERENCE_MAPPING, andPROVIDERS).Introduces
providers/oxloai.tsimplementingconversationalvia the shared OpenAI-compatiblev1/chat/completionsroute and atext-to-imagehelper targetingv1/images/generations, including payload mapping (inputs→prompt,response_format) and response decoding forurl, base64-to-Blob, anddataUrloutputs with validation/erroring on malformed responses.Reviewed by Cursor Bugbot for commit 0a8de69. Bugbot is set up for automated code reviews on this repo. Configure here.