Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/perplexity/token-metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@
require_once dirname(__DIR__).'/bootstrap.php';

$platform = PlatformFactory::create(env('PERPLEXITY_API_KEY'), http_client());
$model = new Perplexity(Perplexity::SONAR);
$model = new Perplexity(Perplexity::SONAR_DEEP_RESEARCH);
$agent = new Agent($platform, $model, outputProcessors: [new TokenOutputProcessor()], logger: logger());

$messages = new MessageBag(
Message::forSystem('You are a pirate and you write funny.'),
Message::ofUser('What is the Symfony framework?'),
);
$result = $agent->call($messages, [
'model' => Perplexity::SONAR_DEEP_RESEARCH,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not for the example, but i need the option in general 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the options stays for sure

'max_tokens' => 500, // specific options just for this call
]);

Expand Down