You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pinned model silently fails over to another provider and model; opt-out undocumented and no marker #128
A request that pins a Cloudflare model can be served by a different provider and a different model by default, and nothing beyond the final provider/model fields marks the substitution.
Measured (@stackbilt/[email protected], local workerd, fake AI binding that throws a 500, fake fetch; no live calls)
served by groq / llama-3.3-70b-versatile; response metadata keys were only systemFingerprint, created
fallbackRules: []
throws; no HTTP call made
A generic Error was used for the binding failure, so other error classes may take a different path.
Why it matters
For an application with a per-task model allowlist, a pin looks like a guarantee. A substituted model can differ in quality and capability, and the request content goes to a different vendor, which matters for privacy-scoped data. A caller can detect it only by comparing response.model with what it asked for.
Expected
Document that a pin isn't a hard constraint, and document fallbackRules: [] as the opt-out. I found it by testing; I didn't find it described for this purpose.
Mark substitutions in the response, for example by populating the canonical routing.fallbackChain or a metadata.fallback field.
Consider a per-request option such as allowFallback: false or allowedRoutes, since one client often serves tasks with different policies.
Relationship to existing issues
Touches the pinned-model and fallback-enforcement items in #113 and the roadmap in #118. Filed separately because the default behavior, the opt-out documentation and the missing marker can be handled on their own.
Activity
feat: Workers AI reasoning control and pinned-model integrity (Stackb…