You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
First of all, thank you for this package.
I just installed it, the version 1.0.1 with PHP 8.3.1 & Laravel 10.10
and I got that error Call to undefined method Gemini\Resources\ChatSession::startChat()
And here is the code
$chat = Gemini::chat()->startChat(history: [
Content::parse(part: 'The stories you write about what I have to say should be one line. Is that clear?'),
Content::parse(part: 'Yes, I understand. The stories I write about your input should be one line long.', role: Role::MODEL),
]);
$response = $chat->sendMessage('Create a story set in a quiet village in 1600s France');
return$response->text(); // Amidst rolling hills and winding cobblestone streets, the tranquil village of Beausoleil whispered tales of love, intrigue, and the magic of everyday life in 17th century France.
I hope I didn't do something wrong, or skipped something in the docs.
The text was updated successfully, but these errors were encountered:
Hello,
First of all, thank you for this package.
I just installed it, the version
1.0.1
with PHP 8.3.1 & Laravel 10.10and I got that error
Call to undefined method Gemini\Resources\ChatSession::startChat()
And here is the code
I hope I didn't do something wrong, or skipped something in the docs.
The text was updated successfully, but these errors were encountered: