Skip to content

Fix missing Chat history comments #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ _This library is not developed or endorsed by Google._
- [Text Generation using Image File](#text-generation-using-image-file)
- [Text Generation using Image Data](#text-generation-using-image-data)
- [Chat Session (Multi-Turn Conversations)](#chat-session-multi-turn-conversations)
- [Chat Session with History](#chat-session-with-history)
- [Text Embeddings](#text-embeddings)
- [Tokens counting](#tokens-counting)
- [Listing models](#listing-models)
Expand Down
4 changes: 3 additions & 1 deletion src/Facades/Gemini.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
use Illuminate\Support\Facades\Facade;

/**
* @param array<int, array{message: string, role: string}> $history
*
* @method static int countTokens(string $prompt)
* @method static float[] embedText(string $prompt)
* @method static string generateText(string $prompt)
* @method static string generateTextUsingImage(string $imageType, string $image, string $prompt = '')
* @method static string generateTextUsingImageFile(string $imageType, string $imagePath, string $prompt = '')
* @method static ChatSession startChat()
* @method static ChatSession startChat(array $history)
* @method static Model[] listModels()
*/
class Gemini extends Facade
Expand Down