Skip to content

feat(edenai): list routed model names - #13578

Closed
Mounir-charef wants to merge 1 commit into
anomalyco:devfrom
edenai:edenai-routed-names
Closed

Mounir-charef wants to merge 1 commit into
anomalyco:devfrom
edenai:edenai-routed-names

Conversation

@Mounir-charef

@Mounir-charef Mounir-charef commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Reworked version of #9477.

Eden AI routes a model by its plain name (claude-sonnet-5.5) to one of the providers serving it, so the sync now reads GET /v3/models?view=models, one entry per name instead of one per provider route. Cost is that view's pricing field, and a new name keeps the authored parts of the provider file it replaces.

Only the 20 most used models are here. The next sync adds 227 names and removes the 394 provider/model files (the regional @eu / @us ones included), so it will need a manual merge like #4569. The old ids still work on the API.

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [high] [possible mistake] packages/core/src/sync/providers/edenai.ts:436 - Check: buildCost now reads only the models-view pricing field, where the code it replaces explicitly documented "pricing carries account-level discounts; list_pricing is the public rate" and preferred list_pricing. Why: The new files show uniform tidy discounts off every other in-repo rate for the same models: gemini-4-argon (4→2, 20→10, cache and audio all ×0.5), gemini-3.8-flash (×0.5), minimax-m3.1-flash (×0.5), kimi-k3/kimi-k3.1-pro/qwen3.8-flash (×0.65), while the GPT/Claude/DeepSeek names are unchanged. That is consistent with either genuinely cheaper endpoints or a discounted pricing field — and if pricing in ?view=models is still account/promo-discounted, all 20 files plus the ~227 the sync will create publish understated prices. Action: Verify from Eden AI's listing-models docs or a raw response (showing pricing vs list_pricing per name) that the models-view pricing is the public billed rate; if the view also returns list_pricing, restore list_pricing ?? pricing; cite the evidence in the PR body and the provider.toml header.
  • [medium] [possible mistake] providers/edenai/models/gpt-6-astra.toml:17 - Check: Context-tier overrides must reflect the host's real thresholds. Why: The new file adds gt = 32_000 tiers (input 20, output 75) whose values are identical to the gt = 272_000 tiers (lines 22-25, 30-36), while the route it replaces (providers/edenai/models/openai/gpt-6-astra.toml) and OpenAI's own entry (providers/openai/models/gpt-6-astra.toml) price this model 10/50 up to 272k and 20/75 above — no 32k threshold exists anywhere else in the repo. Either the 32k band is a feed artifact (then 32k-272k prompts are overpriced 2x in the catalog) or the 272k band is a pure duplicate. Action: Confirm the models-view pricing genuinely returns an above-32k rate that Eden AI bills for this name; otherwise drop the 32k tiers, and remove whichever identical band is spurious.
  • [medium] [possible mistake] providers/edenai/models/minimax-m3.1-flash.toml:10 - Check: structured_output must hold for what the host actually serves under this id. Why: The new file publishes structured_output = true, but the route file it replaces and MiniMax's first-party entry both say false — MiniMax's API accepts the schema fields but does not enforce them (live-checked, providers/minimax/models/MiniMax-M3.1-Flash.toml). The value flipped because the models view unions endpoint capabilities ("what at least one endpoint supports"), which can overstate what a routed call gets; a client relying on enforcement can receive unvalidated output. Action: Confirm Eden AI's gateway (or every endpoint behind the name) enforces response schemas; otherwise set structured_output = false as on the replaced route, and check the other 19 files for capability flips introduced by the same union semantics.
  • [medium] [possible mistake] providers/edenai/models/deepseek-v4-pro.toml:2 - Check: base_model must point at the lab entry for the model actually served under the id. Why: The file points at deepseek/deepseek-v4-pro — the 2026-04-24 V4 Pro preview — while every sibling Eden AI route for this model (qwen/, tencent/, tensorx/…/deepseek-v4-pro-0813) and DeepSeek's own entry (providers/deepseek/models/deepseek-v4-pro.toml: "deepseek-v4-pro serves DeepSeek-V4-Pro-0813") map the same served id to the 2026-08-13 GA entry deepseek/deepseek-v4-pro-0813. The new canonical file inherits the preview's release date, description and benchmarks for the GA model. A hand fix alone won't stick: resolveEdenAIBaseModel resolves first and preserveBaseModels is false, so the sync regenerates the preview pointer. Action: Point base_model at deepseek/deepseek-v4-pro-0813 (or confirm this name really serves the April preview) and make the resolution stable (resolver fix or override) so the next sync run doesn't revert it.
  • [medium] [violation] providers/edenai/models/claude-haiku-5.5.toml:1 - Check: AGENTS.md requires bun validate and bun run v1:check after every catalog change, with every v1 change listed in the PR and maintainer-approved. Why: This PR adds 20 models to the published v1 API under edenai and stages a follow-up sync that the PR body itself reports as 227 created / 394 removed. That removal exceeds the sync automation's auto-merge limits (at most 10 deletions, no more than half the provider's models), so it needs a manual maintainer merge — and until it lands, the published catalog lists every reshaped model twice (e.g. anthropic/claude-sonnet-5-5 and claude-sonnet-5.5) at divergent prices. The PR body reports only a sync dry run, no validation or v1 output. Action: Run and report bun validate and bun run v1:check, list the v1 model additions in the PR, and get maintainer sign-off for the planned 394-id removal (or land the removals in this PR so v1 never carries the duplicate entries).

This branch was previously deployed

1 inactive deployment
release — 8d377cc2 Deployed Nov 13, 2026 by Mounir-charef via review #18836
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