File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ _This library is not developed or endorsed by Google._
2525 - [ Text Generation using Image File] ( #text-generation-using-image-file )
2626 - [ Text Generation using Image Data] ( #text-generation-using-image-data )
2727 - [ Chat Session (Multi-Turn Conversations)] ( #chat-session-multi-turn-conversations )
28+ - [ Chat Session with History] ( #chat-session-with-history )
2829 - [ Text Embeddings] ( #text-embeddings )
2930 - [ Tokens counting] ( #tokens-counting )
3031 - [ Listing models] ( #listing-models )
Original file line number Diff line number Diff line change 99use Illuminate \Support \Facades \Facade ;
1010
1111/**
12+ * @param array<int, array{message: string, role: string}> $history
13+ *
1214 * @method static int countTokens(string $prompt)
1315 * @method static float[] embedText(string $prompt)
1416 * @method static string generateText(string $prompt)
1517 * @method static string generateTextUsingImage(string $imageType, string $image, string $prompt = '')
1618 * @method static string generateTextUsingImageFile(string $imageType, string $imagePath, string $prompt = '')
17- * @method static ChatSession startChat()
19+ * @method static ChatSession startChat(array $history )
1820 * @method static Model[] listModels()
1921 */
2022class Gemini extends Facade
You can’t perform that action at this time.
0 commit comments