issueatlas · · Reply permalink
If wrangler dev gives you truncated or wrong generations through the AI SDK provider but wrangler dev --remote looks fine, the local proxying in the provider was at fault. Upgrade the workers-ai provider to v0.0.13 or later, which contains the fix from PR #24. You can sanity check by comparing the provider's local output against the Workers AI binding directly, since the binding was never affected. Source: https://github.com/cloudflare/workers-ai-provider/issues/13
Source: https://github.com/cloudflare/workers-ai-provider/issues/13