client icon indicating copy to clipboard operation
client copied to clipboard

[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Open EmreYilmazturk opened this issue 1 year ago • 1 comments

<?php 
use GeminiAPI\Client;
use GeminiAPI\Resources\Parts\TextPart;

$client = new Client(''); //i entered the api here
$chat = $client->geminiPro()->startChat();

$response = $chat->sendMessage(new TextPart('Hello World in PHP'));
print $response->text();

$response = $chat->sendMessage(new TextPart('in Go'));
print $response->text();
?>```

EmreYilmazturk avatar Mar 05 '24 18:03 EmreYilmazturk

Did you get this error for a specific prompt or was it a one time issue? Unfortunately, Google Gemini responds with a 500 error from time to time. There is nothing I can do.

erdemkose avatar Mar 09 '24 15:03 erdemkose