Skip to content

Installation ​

Not released yet

The packages are not on crates.io yet. Until the first release, add them from GitHub.

Add the crate with the providers you need. Each provider is a Cargo feature, so your application only compiles the drivers it uses. The first provider is Anthropic:

shell
cargo add laravel-ai-rust --git https://github.com/leonhausdorf/laravel-ai-rust --features anthropic

Then register the service provider in src/app.rs:

rust
use laravel::Application;

Application::configure()
    .with_providers(|providers| {
        providers.add(laravel_ai::AiServiceProvider);
    })

Community port, not affiliated with or endorsed by Laravel. Released under the MIT License.