Repository navigation
feat(providers): add DeepInfra direct API support - #917
Merged
Merged
Conversation
57 tasks done
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
deepinfraprovider across the shared registry, runtime, storage, headless, CLI, and Desktop surfaces.GET /v1/modelsdiscovery endpoint, filtered to verified agent/chat fallback IDs.Why
Issue #860 Phase 3 needs a direct DeepInfra API slice without conflating it with Hugging Face Inference Providers, OpenRouter, generic deployments, other providers, or Phase 7. The provider needs one stable identity and an evidence-backed discovery/runtime contract rather than behavior inferred from generic OpenAI compatibility.
Refs #860.
Scope
This PR implements only the persisted provider ID
deepinfra. It does not add Hugging Face Inference Providers, OpenRouter, custom deployments, or any other provider path.Verification
node ../../worktree-bootstrap.mjsnpm run typecheck/v1/models, fallback filtering, exact model ID,reasoning_effort, and two-stage tool-call contractsnpm --workspace @maka/desktop run build:renderernpm run check:stalenode scripts/check-third-party-notices.mjs@lobehub/[email protected]commite4302041fbb3039608d25f9f618bd462783b875e; SHA-2562a20be86e90b3c2085d5b3213f52c75e4f0041b239d6140475f5809863d45392git diff --check8cf5be25accca16d75f79a0b1024ea5392629609Impact
Users can configure DeepInfra directly with a DeepInfra API key, discover the verified current agent models, and use reasoning and tool calling under the stable
deepinfraidentity. Existing persisted provider identities and the StepFun Step Plan behavior from #916 remain unchanged. No migration is required.Reviewer notes
The discovery path is intentionally
/v1/models, not the currently live but undocumented/v1/openai/modelsalias. The heterogeneous response is filtered through the registry-owned fallback list because the public model-list contract does not expose a reliable chat-only type discriminator.Ready for review
Verificationexplains why it is not applicable