Video
Description
Package for integrating Large Language Models (LLMs) into your AI applications.
Here's a quick example of how you can generate text using Prism:
use Prism\Prism\Facades\Prism;use Prism\Prism\Enums\Provider; $response = Prism::text() ->using(Provider::Anthropic, 'claude-3-7-sonnet-latest') ->withSystemPrompt(view('prompts.system')) ->withPrompt('Explain quantum computing to a 5-year-old.') ->asText(); echo $response->text;
Related Content on Laravel Daily
Recent Courses on Laravel Daily
Next.js Basics for Laravel Developers
11 lessons
58 min
Testing in Laravel 13 For Beginners
26 lessons
1 h 41 min read
Queues in Laravel 13
18 lessons
1 h 12 min read