<?phpuse Cognesy\Polyglot\Inference\Inference;use Cognesy\Utils\Str;require 'examples/boot.php';$answer = (new Inference) ->using('sambanova') // see /config/llm.php ->with( messages: [['role' => 'user', 'content' => 'What is the capital of France']], options: ['max_tokens' => 64] ) ->get();echo "USER: What is capital of France\n";echo "ASSISTANT: $answer\n";assert(Str::contains($answer, 'Paris'));?>
Assistant
Responses are generated using AI and may contain mistakes.
<?phpuse Cognesy\Polyglot\Inference\Inference;use Cognesy\Utils\Str;require 'examples/boot.php';$answer = (new Inference) ->using('sambanova') // see /config/llm.php ->with( messages: [['role' => 'user', 'content' => 'What is the capital of France']], options: ['max_tokens' => 64] ) ->get();echo "USER: What is capital of France\n";echo "ASSISTANT: $answer\n";assert(Str::contains($answer, 'Paris'));?>
Assistant
Responses are generated using AI and may contain mistakes.