You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is anyone else having this issue? this is a brand new laravel project on windows, running through php artisan serve im just running the code from the example in the docs.
My code:
Route::get('/', function () {
$client = OpenAI::client(config('app.open-ai-key'));
$prompt = <<<TEXTExtract the requirements for this job offer as a list."We are seeking a PHP web developer to join our team. The ideal candidate will have experience with PHP, MySQL, HTML, CSS, and JavaScript. They will be responsible for developing and managing web applications and working with a team of developers to create high-quality and innovative software. The salary for this position is negotiable and will be based on experience."TEXT;
$result = $client->completions()->create([
'model' => 'text-davinci-002',
'prompt' => $prompt,
]);
ray($result);
});
I had the same problem. The issue is the local PHP configuration as it does not allow cURL to find the certificate bundle it needs to make requests on port 443. The solution is to:
Add the following line to php.ini: (if this is shared hosting and you don’t have access to php.ini then you could add this to .user.ini in public_html).
Might be handy to include a note in the readme. Great job on the code.
Is anyone else having this issue? this is a brand new laravel project on windows, running through
php artisan serve
im just running the code from the example in the docs.My code:
Flare exception:
https://flareapp.io/share/xPQoaD25#F47
The text was updated successfully, but these errors were encountered: