Download the PHP package mpstenson/cloudflare-ai without Composer
On this page you can find all versions of the php package mpstenson/cloudflare-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mpstenson/cloudflare-ai
More information about mpstenson/cloudflare-ai
Files in mpstenson/cloudflare-ai
Package cloudflare-ai
Short Description This package allows you to interact with Cloudflare AI web services.
License MIT
Homepage https://github.com/mpstenson/cloudflare-ai
Informations about the package cloudflare-ai
This package allows you to interact with Cloudflare AI web services.
The cloudflare-ai package provides easy access to the cloudflare ai rest web services in Laravel.
Installation
You can install the package via composer:
This package relies on two .env var settings.
The API token used needs to have access to the cloudflare ai tools. You can get details on generating the cloudflare token here https://developers.cloudflare.com/workers-ai/get-started/rest-api/. You can publish the config file with:
This is the contents of the published config file:
Default models can be optionally specified in the .env file. If default models are specified they can still be overwritten on specific method calls.
Usage
Run a completion
Transcribe Audio
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Matt Stenson
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of cloudflare-ai with dependencies
guzzlehttp/guzzle Version ^7.8
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16