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
[NEW] Practical Laravel Security: Packages, Secrets, Supply-Chain Attacks
7 lessons
43 min read
Testing in Laravel 13 For Beginners
26 lessons
1 h 41 min read
Laravel 13 Eloquent: Expert Level
41 lessons
1 h 34 min