client
client copied to clipboard
Google Gemini API PHP Client allows you to use the Gemini AI model
Is the PDF file upload feature supported?
Added support for system instruction (using method withSystemInstruction(string $systemInstruction)) Updated url from ´v1´to ´v1beta´ in order to support this feature. It would be easily adaptable to support multiple system instructions...
Is it possible to access those models?
Hello, I randomly receive an error Undefined array key "content" in vendor/gemini-api-php/client/src/Resources/Candidate.php on line 65. response is missing content ``` array:3 [ "finishReason" => "SAFETY" "index" => 0 "safetyRatings" =>...
There doesn't seem to be a way to add systemInstructions for assistant like functionality.. Would be great to add one.
Due to us having to use past versions on our servers, is PHP 8.1+ really the lowest version of PHP that we can use? Would editing compose.json and changing to...
Hi, Gemini as included support to send a video in the request. Is it possible to add video support to this package? Thank you
This allows structured output usage. ```php $client = new Client($key); $clent = $client->withV1BetaVersion()->generativeModel('gemini-2.0-flash'); $config = (new GenerationConfig()) ->withResponseMimeType(MimeType::APPLICATION_JSON) ->withResponseSchema([ 'type' => 'string', 'enum' => [ 'hotdog', 'fries', 'coke' ] ]);...
Is it possible for you to add the new thinking config or a manual config way to add a new config? The updates from Google Gemini are quite fast, and...
# New MIME Types Supported Since the release of Gemini 2.0 Flash, several new MIME types have been supported. However, they were not yet added to the `MimeType` enum. Since...