feat(melious): add Melious provider with 56 models - #5047
Open
pvdspek wants to merge 1 commit into
Open
Conversation
Melious AI GmbH relays open-weight models on European infrastructure behind an OpenAI-compatible endpoint at https://api.melious.ai/v1. - providers/melious: provider.toml, currentColor logo.svg, and 56 model entries (49 chat + 7 embedding), all override-only via base_model. - models/: 14 new lab metadata entries needed as base_model targets, under the new labs nousresearch, hcompany, baai, intfloat and sentence-transformers. No existing lab entry is modified. - labs/: descriptions for those five labs, logos for baai, nousresearch and hcompany, plus LAB_NAME_OVERRIDES so they render as "Nous Research", "H Company", "BAAI" and "intfloat" rather than a title-cased directory id. Only models listed on https://melious.ai/hub/models are included. Costs are USD/MTok, converted from Melious's EUR list price for the default `balanced` route at 1.1535 USD/EUR (ECB euro reference rate, 2026-08-07). Reasoning: this host flattens upstream thinking controls into a single `reasoning_effort` field accepting low|medium|high, with no thinking/toggle field and no reasoning budget field, so no entry uses `toggle` or `budget_tokens`. Models whose underlying lab exposes no caller-side control use []. See https://melious.ai/docs/reference/chat-completions Limits come from each model's hub deployment values, including parameters.max_tokens where published. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
6 tasks
Contributor
|
Checking how lab names are rendered and a few remaining edge cases. |
pvdspek
marked this pull request as draft
August 19, 2026 14:27
pvdspek
marked this pull request as ready for review
August 19, 2026 14:27
Contributor
Action items
|
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 Melious (Melious AI GmbH), a European relay for open-weight models with an OpenAI-compatible endpoint at
https://api.melious.ai/v1.Supersedes #4438 — same final content, squashed onto current
devas a single commit so no intermediate patch touches shared lab metadata.What's here
providers/melious/provider.toml,logo.svg, and 56 model entries — 49 chat + 7 embeddingmodels/base_modeltargets. No existing lab entry is modified.labs/packages/web/src/render.tsxLAB_NAME_OVERRIDESEvery provider entry uses
base_modeland is override-only. New labs:nousresearch,hcompany,baai,intfloat,sentence-transformers.Sources
https://melious.ai/hub/models/<id>SSR payload, accessed 2026-08-19Pricing
All costs are USD/MTok, converted from EUR at 1.1535 USD/EUR — the ECB euro reference rate for 2026-08-07. Rate and date are recorded in a leading comment in every model file.
Melious publishes two prices per model. I used the hub
balanced-route price, because a bare model ID resolves tobalanced— that is what you are billed callingmodel="gpt-oss-120b". The/pricingrate card agrees for 41 of 49 chat models; the sharpest divergence isgpt-oss-120b(rate card €0.04/€0.20 vsbalanced€0.22/€0.66). Happy to switch those 8 if maintainers prefer the published table.cost.cache_readis set where Melious charges a discounted cached-prompt rate. Their docs note caching is billed but not user-controllable.Scope
Only models listed on https://melious.ai/hub/models are included.
apertus-70bappears on the rate card but has no hub page (404, absent from all 64 hub listings), so it is excluded. Image and audio models are excluded — they price per-image and per-minute, which thecostschema does not express.Reasoning options
Per https://melious.ai/docs/reference/chat-completions, this host exposes exactly one reasoning control:
There is no
thinkingobject, no on/off field, and no reasoning budget field — so no entry usestoggleorbudget_tokens, andnone/maxare not authored because this API does not accept them.presetbiases routing, not reasoning depth.effortlow|medium|high: the underlying model has a real on/off or graded thinking control, and effort is the only dial this host exposes.[]: no dial exists upstream for effort to drive.deepseek-r1-0528,minimax-m2.5,minimax-m2.7,kimi-k2.7-code— the first-party lab host authors[](deepseek-reasoner,MiniMax-M2.5/M2.7,kimi-k2.7-code).qwen3-next-80b-a3b-thinking— Alibaba exposes only a reasoning budget, which this host has no field for.hermes-4-405b/-70b— system-prompt steered; OpenRouter models it as a toggle, unavailable here.Each
[]entry names its baseline in a leading comment.Limits
limit.contextcomes from each model's hub deployment context; all 24 overrides match the hub exactly.limit.outputuses the hub'sparameters.max_tokenswhere published (4 of 56) — notablydevstral-2-123b-instruct-2512andnemotron-3-nano-30b-a3bat 8 192. Where a smaller context is served and nomax_tokensis published, output is capped at the served context with a comment saying so.Two hub context figures are deliberately not used, because they exceed the model's architectural maximum:
bge-large-en-v1.5(hub 8192, model hard-capped at 512 positions) andqwen3-embedding-8b(hub 41000, native 32768). Both files record the discrepancy so a future sync does not reinstate it.All 18
structured_outputoverrides match the hub'scapabilities.structured_outputexactly.Lab logos
baaiandnousresearchcome from lobe-icons (MIT);hcompanyis the official mark fromhcompany.ai. All normalised tocurrentColor, no fixedwidth/height, square viewBox.intfloatandsentence-transformersship no logo —intfloatis an individual's Hugging Face handle with no brand mark, andsentence-transformershas no SVG anywhere (only_static/logo.pngon sbert.net). Both fall back to the default logo, matching 10 other logo-less labs. I did not want to trace bitmaps into fake vectors.Test plan
bun validate— exits 0cd packages/web && bun run build— exits 0;/providers/meliousrenders, all 5/labs/<id>pages render with correct display names,dist/logos/melious.svgand the 3 lab logos are emitted_api.jsonhas 56 Melious models; everybase_modelresolves; every resolved model haslimit.context+limit.output, and nolimit.outputexceeds itscontextreasoning = truehasreasoning_options; none set it withreasoning = falsebun test— 164 pass, 4 fail; all 4 fail identically on a cleandevcheckout (2 DeepInfra sync assertions, 2 missingpackages/sdk/src/snapshot.jsbuild artifact). Unrelated to this change.Note for the automated reviewer
Earlier review passes on #4438 repeatedly flagged
models/meta/llama-3.1-8b-instruct.tomlandmodels/alibaba/qwen3-vl-235b-a22b-instruct.tomlas replacing existing lab metadata. That was true of the first commit in that branch and was reverted later, but the reviewer reads the cumulative patch series rather than the net diff, so it kept resurfacing. This PR is squashed specifically to remove that ambiguity:models/here is additions only, and neither of those paths appears in the diff.🤖 Generated with Claude Code