feat: add Hubris LLM provider - #2199
Open
Aimagine-life wants to merge 2 commits into
Open
Conversation
Hubris (https://hubris.pw) is an OpenAI-compatible LLM gateway billed in Russian rubles. Static list of five popular models plus dynamic discovery from /v1/models (text chat models with tool support only), instances via getOpenAILikeModel.
The provider declares apiTokenKey: 'HUBRIS_API_KEY' but the variable was missing from .env.example, where the other 19 providers are listed. Anyone setting Hubris up from the file had nowhere to learn the name. Matched against stackblitz-labs#2113 (Cerebras and Fireworks), the last provider addition merged here: the provider-specific part of that PR is the provider file, the registry entry and this one line block.
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.
Adds Hubris as an LLM provider. Hubris is an OpenAI-compatible LLM gateway billed in Russian rubles — one API key for 500+ models from OpenAI, Anthropic, Google, DeepSeek, Qwen, Z.ai, Moonshot, xAI and MiniMax.
app/lib/modules/llm/providers/hubris.ts—HubrisProvider extends BaseProvider: five static models (Claude Sonnet 5, Claude Haiku 4.5, GPT-5.6 Luna, Gemini 3.7 Flash, DeepSeek V4 Flash) plus dynamic discovery fromhttps://api.hubris.pw/v1/models(only text chat models that support tools,maxTokenAllowedfromcontext_window); instances via the existinggetOpenAILikeModelhelper, API key fromHUBRIS_API_KEY/ provider settings,getApiKeyLink→ https://hubris.pw/keys.app/lib/modules/llm/registry.ts— export.Same shape as the Cerebras / Fireworks providers (#2113). Model ids on Hubris use the full
vendor/modelform, so they are passed through unchanged.Not included: the
.env.exampleblock forHUBRIS_API_KEY— happy to add it if you want the example file to list every provider key.🤖 Generated with Claude Code