Skip to content
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

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

Open
EmreYilmazturk opened this issue Mar 5, 2024 · 1 comment

Comments

@EmreYilmazturk
Copy link

<?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();
?>```
@erdemkose
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants