A developer built a dedicated Prism provider package for Cloudflare Workers AI in Laravel, fixing three compatibility gaps between Prism's xAI driver and the Workers AI /compat endpoint: content format mismatch, structured output crashes, and missing content fields after tool calls. The package (meirdick/prism-workers-ai) supports text, structured output, streaming, embeddings, and tool calling. A reflection-based bridge was also built to work around a hardcoded driver mapping in the Laravel AI SDK, with a PR filed upstream for a one-line fix. The author also created a Claude Code skill to automate AI Gateway setup across Laravel projects.

Sort: