Skip to content

feat(fluence): add provider and 19 models - #14785

Open
danielsdlv wants to merge 22 commits into
anomalyco:devfrom
danielsdlv:add-fluence-provider
Open

danielsdlv wants to merge 22 commits into
anomalyco:devfrom
danielsdlv:add-fluence-provider

Conversation

@danielsdlv

@danielsdlv danielsdlv commented Nov 26, 2026 •

Copy link
Copy Markdown

Adds Fluence Inference (https://inference.fluence.cloud), an OpenAI-compatible router for hosted models.

Follow-up to #9147, which added the logo only. That PR left out provider.toml because usable models and prices depend on the API key. This one lists a fixed set of 19 models and treats prices as ceilings. A key's access list or guardrail can still hide some models.

  • Base URL: https://api.fluence.cloud/v1 (Chat Completions)
  • Env var: FLUENCE_API_KEY
  • Docs: https://inference.fluence.cloud/docs
  • Models: 19, each with base_model pointing at an existing lab file. Provider files only override host-specific limits, reasoning controls, structured output, cache and cost.
  • Prices: USD per million tokens, from Fluence's public catalog at https://inference.fluence.cloud (snapshot 2026-11-25 13:35 UTC). Fluence prices float with supply, so each price is a ceiling: the snapshot price rounded up to 2 significant figures, as the Opper listing does. Prices are for standard requests.
  • Long-context pricing: gemini-3.1-pro-preview (>200K), gpt-6-luna (>272K), glm-5.3-flash (>390K), kimi-k3.1-pro (>1M, output price only: the catalog's input price above 1M rounds to the same ceiling as the base price, so no input override is listed).
  • kimi-k3: the catalog lists a 1,000,000-token window for standard routes, and its rows above that size conflict with each other, so no long-context prices are published. Output is capped at the window because the schema does not allow output above context.
  • Held back: glm-5.1, glm-5, qwen3.6-35b-a3b, qwen3.6-flash, qwen3.6-plus, qwen3.7-plus and gemini-2.5-flash are not in this PR. Fluence publishes per-model effort_levels only in the authenticated GET /v1/routing, and its docs name no reasoning on/off field, so their controls cannot be written without guessing. They will follow in a separate PR once the levels are confirmed. Effort lists on the models in this PR follow the same base model on peer hosts.
  • No sync module: Fluence has no public machine-readable catalog. GET /v1/models needs an API key and returns 401 without one, so prices are hand-authored snapshot ceilings. A sync module can be added if Fluence publishes a keyless catalog endpoint.
  • Limits never exceed the lab model's limits. step-5-preview is marked beta.
  • Logo: providers/fluence/logo.svg is already in the repo.

Checks: bun validate passes. bun run v1:check reports only the new provider and its 19 models as additions to v1.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP

@danielsdlv
danielsdlv marked this pull request as ready for review November 26, 2026 19:05
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [high] [violation] providers/fluence/models/z-ai/glm-5.1.toml:8 - Check: AGENTS.md → Reasoning controls: every toggle = true needs a leading top-of-file comment with the exact wire path (# Toggle: <field> = <values>). Why: All seven toggle files (glm-5.1.toml:8, z-ai/glm-5.toml:11, qwen/qwen3.6-35b-a3b.toml:11, qwen/qwen3.6-flash.toml:11, qwen/qwen3.6-plus.toml:8, qwen/qwen3.7-plus.toml:11, google/gemini-2.5-flash.toml:8) only carry "Reasoning controls follow the same base model on peer hosts", which names no request field. The underlying labs use different off-switches (Zhipu thinking.type, Alibaba enable_thinking, Google budget/OpenRouter-style fields), and Fluence is a multi-supplier router, so clients can't tell which field this host accepts — and sync serialization strips mid-file comments, so the field can't be documented later in the file. Action: Add a leading # Toggle: <field> = <values> comment to each of the seven files naming the field Fluence actually accepts, with its source (Fluence docs/catalog or a named upstream), e.g. # Toggle: enable_thinking true|false.
  • [medium] [possible mistake] providers/fluence/models/moonshotai/kimi-k3.1-pro.toml:16 - Check: Context-based overrides must encode a real price band. Why: The >1M input override repeats the base price (price = 1.3 → price = 1.3), so it is either a mis-transcribed/mis-rounded catalog row or dead data — the output tier does change (6.2 → 6.4), so the catalog evidently has a distinct >1M row and the input half of it is unpublished here. Action: Recheck the catalog's >1M input price and correct the override, or drop the [[cost.text.input.overrides]] row if the input price is genuinely unchanged above 1M.
  • [low] [possible mistake] providers/fluence/models/moonshotai/kimi-k3.toml:7 - Check: Host [limit] overrides must reflect what the host actually serves (AGENTS.md → Override-only provider files). Why: The PR body says kimi-k3's window was "capped at the base context instead", but the file sets context = 1_000_000, output = 1_000_000 while the lab (models/moonshotai/kimi-k3.toml) documents 1,048,576 for both — 1,000,000 matches neither the lab's base context nor an obviously documented host figure. Action: Verify the catalog's documented context/output for kimi-k3; if Fluence serves the full 1,048,576 window, drop the [limit] override to inherit the lab, otherwise cite the catalog's 1M figure in the header comment.
  • [low] [possible mistake] providers/fluence/provider.toml:1 - Check: Sync module when the provider's catalog is rich enough (AGENTS.md → Sync modules; sync.md). Why: The PR itself states Fluence prices float with supply, so these hand-authored snapshot ceilings start drifting immediately, and the public catalog already lists the authoritative model set and prices that a sync module could own ([cost.*], additions/removals) instead of relying on manual snapshots. Action: Add a sync module for the public catalog if it is machine-readable, or state in the PR why it cannot be synced (e.g. no catalog API) so the snapshot-ceiling approach is a documented trade-off.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Nov 26, 2026
Fluence documents no request field that turns reasoning on or off, so list no reasoning control instead of copying a peer host's toggle.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
@github-actions github-actions Bot removed the reviewer: ready Automated review found no actionable items label Nov 26, 2026
Fluence documents no request field that turns reasoning on or off, so list no reasoning control instead of copying a peer host's toggle.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
Fluence documents no request field that turns reasoning on or off, so list no reasoning control instead of copying a peer host's toggle.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
… input tier

kimi-k3: cite the catalog's 1,000,000-token window and cap output at the window, since the schema does not allow output above context.
kimi-k3.1-pro: remove the input override above 1M tokens, because its price rounds to the same ceiling as the base price. The output override stays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [high] [violation] providers/fluence/models/z-ai/glm-5.1.toml:9 - Check: Reasoning-capable models on a relay must author host-specific capabilities.reasoning controls (toggle/effort/budget); bare reasoning = { supported = true } is only for models that are affirmatively always-on with no caller control. Why: Seven files end this PR with no controls for models whose labs and same-surface peers all expose caller control, and the files' own headers admit the control exists: providers/fluence/models/z-ai/glm-5.toml:12, providers/fluence/models/qwen/qwen3.6-35b-a3b.toml:12, providers/fluence/models/qwen/qwen3.6-flash.toml:12, providers/fluence/models/qwen/qwen3.6-plus.toml:9, providers/fluence/models/qwen/qwen3.7-plus.toml:12, and providers/fluence/models/google/gemini-2.5-flash.toml:9 each say "per-model effort levels are only in the authenticated GET /v1/routing", and providers/fluence/provider.toml:5 says "Reasoning effort is passed through from the request". That is uncertainty (levels exist but were not retrieved), not an affirmative no-control, which AGENTS.md explicitly rejects ("No controls means no caller control, not uncertainty"); the same host's glm-5.3-flash.toml correctly peer-copies controls, making the seven an internal inconsistency. Baseline evidence: OpenRouter's same-surface entries author toggle = true for glm-5, glm-5.1, qwen3.6-35b/flash/plus, qwen3.7-plus and gemini-2.5-flash; NanoGPT authors effort = ["none", "high"] for glm-5.1; first-party zai/alibaba/google entries also expose controls. Publishing "no caller control" here misreports the host surface in the v2 API. Action: For these seven models, author the real control set: retrieve the per-model effort levels from the authenticated GET /v1/routing (or a Fluence key/docs citation for the exact request field) and write them as effort/toggle with the required leading wire-path comment, or copy the lab/peer control set for the model. Keep bare reasoning = { supported = true } only for any model Fluence verifiably serves always-on with no caller control, and state that verification in the header comment.

Fluence publishes per-model effort levels only in the authenticated GET /v1/routing. The model returns in a follow-up once they are confirmed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
danielsdlv and others added 2 commits November 26, 2026 20:30
Fluence publishes per-model effort levels only in the authenticated GET /v1/routing. The model returns in a follow-up once they are confirmed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
…onfirmed

Fluence publishes per-model effort levels only in the authenticated GET /v1/routing. The model returns in a follow-up once they are confirmed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
…firmed

Fluence publishes per-model effort levels only in the authenticated GET /v1/routing. The model returns in a follow-up once they are confirmed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
…irmed

Fluence publishes per-model effort levels only in the authenticated GET /v1/routing. The model returns in a follow-up once they are confirmed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
danielsdlv and others added 2 commits November 26, 2026 20:31
…irmed

Fluence publishes per-model effort levels only in the authenticated GET /v1/routing. The model returns in a follow-up once they are confirmed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
…confirmed

Fluence publishes per-model effort levels only in the authenticated GET /v1/routing. The model returns in a follow-up once they are confirmed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
@danielsdlv danielsdlv changed the title feat(fluence): add provider and 26 models feat(fluence): add provider and 19 models Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/fluence/models/nvidia/nemotron-3-super-120b-a12b.toml:8 - Check: budget may only be authored when this host has a real reasoning-token budget request field (AGENTS.md → Reasoning controls; audit skill Step 4: "Budget only if a reasoning-budget field exists on this path"). Why: This file (and nemotron-3-ultra-550b-a55b.toml:11) copy OpenRouter's budget = { }, but OpenRouter's budget lives on OpenRouter's own request surface, not Fluence's. The PR itself describes Fluence as Chat Completions-only, rejecting unknown top-level fields, with only reasoning effort passed through (providers/fluence/provider.toml header), and neither file's header nor the PR body cites a Fluence-documented budget field. Another peer serving the same model (DeepInfra) explicitly documents "No budget: Deep Infra documents no reasoning-token budget field." Publishing budget tells clients Fluence accepts a control it has no documented wire field for. Action: Remove budget = { } from both nemotron files, or keep it only with a header citation naming the exact Fluence budget request field (from Fluence's docs or the authenticated GET /v1/routing).
  • [low] [violation] .pr-review/pull-request.json:3 - Check: The PR title/body must describe the change actually being merged (AGENTS.md: v1/data changes are reviewed against what the PR lists). Why: The title says "add provider and 26 models" and the body's "Models: 26" bullet describes seven files (glm-5.1, glm-5, qwen3.6-35b-a3b, qwen3.6-flash, qwen3.6-plus, qwen3.7-plus, gemini-2.5-flash, including the qwen3.6-plus >256K pricing) whose reasoning-controls headers it quotes — but the head deletes all seven in the "hold until confirmed" commits, leaving 19 model files. A maintainer approving the listed data would expect models and long-context pricing that are not in the diff. Action: Update the title/body to the final 19-model set and mark the seven models as deferred pending per-model effort_levels from the authenticated GET /v1/routing; consider a sync module (per sync.md) against that catalog so floating prices and effort levels stay current and the held models can return with confirmed controls.

Fluence documents no reasoning-token budget request field, only reasoning effort, so list no budget instead of copying a peer host's.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XxrYddbZuGL94mxcWuVXzP
@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Nov 26, 2026

This branch was previously deployed

1 inactive deployment
release — b2d68dc6 Deployed Nov 26, 2026 by danielsdlv via review #21141
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewer: ready Automated review found no actionable items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant