Skip to content

Switch to native workersai gateway#8

Open
meirdick wants to merge 1 commit into
masterfrom
test/workersai-native-gateway
Open

Switch to native workersai gateway#8
meirdick wants to merge 1 commit into
masterfrom
test/workersai-native-gateway

Conversation

@meirdick

Copy link
Copy Markdown
Owner

Summary

Switch Workers AI provider from Prism-based driver to the native workersai gateway in laravel/ai for direct Cloudflare Workers AI API access.

Changes

  • Provider driver: workers-aiworkersai
  • URL: Auto-built from account_id config (no manual URL needed)
  • Model names: Removed workers-ai/ prefix (not needed on direct endpoint)
  • Depends on: Add Workers AI gateway for direct API integration ai#1 (laravel/ai fork with workersai gateway)

Test plan

  • Full pest test suite passes
  • Browser tested AI features
  • Verified with real Cloudflare API calls

🤖 Generated with Claude Code

Changes the workers-ai provider driver from 'workers-ai' (Prism-based)
to 'workersai' (native laravel/ai gateway) for direct Cloudflare Workers
AI access without Prism dependency.

- Switched driver to workersai with account_id + gateway config
- Removed workers-ai/ model name prefixes (not needed on direct endpoint)
- Added embeddings model config
- Added local path repository for laravel/ai fork with gateway support

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant