provider: add clf-ai-gateway (OpenAI-compatible, 9 models) - #6046
provider: add clf-ai-gateway (OpenAI-compatible, 9 models)#6046bap1106 wants to merge 6 commits into
Conversation
Action items
|
b1ebdcd to
e57d223
Compare
|
Both review items addressed in e57d223:
|
Action items
|
OpenAI-compatible gateway on Cloudflare Workers AI upstream. Models reference lab entries via base_model; files carry only this surface's deltas: measured limits, promo pricing (matches GET /v1/public/models, no auth), per-model reasoning_effort sets enforced server-side, and text+image modalities where the lab lists more. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
e57d223 to
4627786
Compare
|
All five items addressed in 4627786 — by adding per-file evidence rather than changing values, because these values are the enforced, measured surface of this gateway (not a template ladder):
|
Action items
|
|
Re the remaining [low] note on glm-5.2 |
The API still accepts 'none' (part of the public accept-set), but measured 2026-08-28 it does not reliably disable thinking upstream - so we stop advertising an off switch that does not switch off. File comment explains. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Addressed the glm-5.3 item in 1ab2a9e: dropped The four remaining "confirm" items are confirmed, per the two comments above: each listed set is the live |
Action items
|
… effect Measured on the live surface 2026-09-02: same prompt, 3 samples per level, median reasoning_tokens. Levels the API accepts but that do not change behavior are documented as aliases in each file and no longer advertised; models with no measurable graded control get reasoning_options = []. Evidence table in the PR body. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Add provider: CLF AI GatewayOpenAI-compatible gateway at What's included
Reasoning options — measured effect, not accept-setWire: only
Sample 400 (verbatim): Why not lab/peer label names (e.g. Verification for reviewers
|
Action items
|
… measured effects documented reasoning_options.values now list exactly what this host accepts (the public capabilities.reasoning_efforts; anything else is a 400) - the client-facing control surface - with the measured per-level effect (3 samples/level medians) documented in each file and in the PR body. DeepSeek entries now reference the dated lab snapshots that match the upstream ids (deepseek-v4-flash-0731, deepseek-v4-pro-0813). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Action items
|
…re inert, no toggle wire field Per the latest review round: reasoning_options lists only levels with a measured distinct effect on this host (3 samples/level medians, 2026-09-02); models whose accepted levels are inert get [] with a leading comment stating that no on/off wire field is forwarded either. Accept-sets stay documented in each file and in the PR body. DeepSeek base_models keep the dated snapshots. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… forwarded, measured effects
|
No actionable findings. |
Add provider: CLF AI Gateway
OpenAI-compatible gateway at
https://api.clfaigateway.dev/v1, resellingCloudflare Workers AI open-weight models (GLM, Kimi, DeepSeek, Qwen) on prepaid
credits. We are transparent about running on Workers AI upstream — each model's
upstream
@cf/...id is exposed viaGET /v1/public/models(no auth required),which is also the live source for pricing and capabilities.
What's included
provider.toml— name,@ai-sdk/openai-compatible, envCLF_AI_GATEWAY_API_KEY, base URL, docs link.logo.svg— currentColor, no hard-coded colors.models/— 9 models. All numbers are measured against the live endpoint,not copied from upstream marketing pages:
limit.contextverified per model (the 1M models were probed to the1,048,576 boundary; we deliberately do NOT repeat the 1,310,720 figure that
upstream catalog reports — see issue cloudflare-workers-ai: glm-5.3-flash limit 1310720 exceeds gateway max 1048576 (same as #4422 for glm-5.2) #5824 for that discrepancy).
limit.output= 131,072, verified by sendingmax_completion_tokensprobes.attachmentonly on the 4 models that actually accept images (probed);the gateway returns a named 400 for image input on the other five.
cost= current promotional pricing (40% off list), which is what the APIactually bills today. We will PR updates when pricing changes; live prices
are always at https://clfaigateway.dev/models and
GET /v1/public/models.Verification for reviewers
curl https://api.clfaigateway.dev/v1/public/models— public, no key; ids,context windows, capabilities and per-token pricing (nano-USD per token;
divide by 1000 for USD/MTok) should match these TOML files exactly.