feat: add Tensorix as an API provider#6719
Open
shanemort1982 wants to merge 1 commit intoChatGPTNextWeb:mainfrom
Open
feat: add Tensorix as an API provider#6719shanemort1982 wants to merge 1 commit intoChatGPTNextWeb:mainfrom
shanemort1982 wants to merge 1 commit intoChatGPTNextWeb:mainfrom
Conversation
Adds full Tensorix integration alongside existing providers like SiliconFlow and DeepSeek. Tensorix is an OpenAI-compatible gateway with access to DeepSeek, Llama 4, Qwen, GLM, and other models. Changes: - New platform client (tensorix.ts) - Server-side proxy route - Settings UI for endpoint + API key - Environment variable support (TENSORIX_URL, TENSORIX_API_KEY) - Default model list with popular Tensorix models
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.
Hi there 👋
I've added Tensorix as a new provider option in NextChat. Tensorix is an OpenAI-compatible API gateway — one key gets you access to DeepSeek V3/R1, Llama 4, Qwen 3, GLM-4, MiniMax, and others. No subscription, pure pay-as-you-go.
What's changed
This follows the exact same pattern as the existing SiliconFlow provider, so it should feel very familiar:
app/client/platforms/tensorix.ts) — handles chat completions and model listingapp/api/tensorix.ts) — route handler for proxied requestsTENSORIX_URLandTENSORIX_API_KEYfor server-side deploymentFiles touched
app/constant.tsapp/client/platforms/tensorix.tsapp/api/tensorix.tsapp/api/[provider]/[...path]/route.tsapp/client/api.tsapp/store/access.tsapp/config/server.tsapp/api/auth.tsapp/locales/en.tsapp/components/settings.tsxCross-promotion
We've already built a NextChat integration guide on our docs side. Happy to link back to the NextChat repo and this would give your users another provider option with access to models that aren't available through some of the other gateways.
No breaking changes — just an additive provider. Let me know if anything needs adjusting!