Skip to content

feat: add Tensorix as an API provider#6719

Open
shanemort1982 wants to merge 1 commit intoChatGPTNextWeb:mainfrom
shanemort1982:add-tensorix-provider
Open

feat: add Tensorix as an API provider#6719
shanemort1982 wants to merge 1 commit intoChatGPTNextWeb:mainfrom
shanemort1982:add-tensorix-provider

Conversation

@shanemort1982
Copy link

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:

  • New platform client (app/client/platforms/tensorix.ts) — handles chat completions and model listing
  • Server-side proxy (app/api/tensorix.ts) — route handler for proxied requests
  • Settings UI — endpoint URL + API key fields under the provider dropdown
  • Env varsTENSORIX_URL and TENSORIX_API_KEY for server-side deployment
  • Default models — DeepSeek Chat V3.1, DeepSeek R1, Llama 4 Maverick, GLM-4.7, etc.

Files touched

File What
app/constant.ts Base URL, enums, config object, model list
app/client/platforms/tensorix.ts New platform client
app/api/tensorix.ts Server-side handler
app/api/[provider]/[...path]/route.ts Route registration
app/client/api.ts Provider switch + auth header logic
app/store/access.ts State management
app/config/server.ts Server env vars
app/api/auth.ts Auth case
app/locales/en.ts English strings
app/components/settings.tsx Settings panel UI

Cross-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!

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant