-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
The model won't print/return any results. #12
Comments
I test on my local (Laravel v9.17.0 (PHP v8.1.6), and I didn't find any issue like that. returned I don't recommend using dd, because they didn't have a friendly JSON format, return data then use JSON viewer instead of. TROUBLESHOOTING
|
I am stumped. I get a blank page when I Yes, I have installed But what's weird is that I am not getting an error when I put a wrong API key. |
Could you please run the following curl command?
You should see response like this;
I just wanna check if you can easily access OpenAI servers. If you see any error notice me. After that, I need your PHP, and laravel versions.
|
I didn't catch any reason for the bug. So I prepare another troubleshooting
Did you see the gfg page?
|
I am still getting a blank page. Very weird, because I am downloading Docker Desktop but I've never used it before. |
I think cURL is disabled in PHP, for enabling can you apply these steps?
|
Sorry about that, Let's try with Docker then. I'll be waiting for your response. |
It finally worked! I got curl to finally work. Thank you for your patience, I can't wait to see the limits of this library. |
That's great to hear that! it's not boring, so I don't need any patience :). I feel glad while helping you guys. Have a great day! |
How did you fix this issue? I have been going at it for about two days and I am getting the same thing on multiple systems. |
I think there might be an issue, because the code you posted does not work. But this code works. Sorry for reopening this but i have not been able to get this to work for a few days now. works in terminal but not once i install it. |
This is so odd. The code you posted does not work. This code works just fine
But if i change the URL to The odd thing is that i can test this via Postman or Curl terminal with no issues. I am sure this is not something on the code side but i just cant figure this out it baffles me. |
hey @silicahd, could you create an index.php and put following example.
can you share your response? |
I found the issue but cant figure out how to fix it. I add the line to get the error from Curl and it came back to "SSL certificate problem: certificate has expired" . My SSL is there so i am trying to figure out if we can do insecure so figure out why CURL gives this response. |
For anybody running into this if you are using something like aaPanel or others likely your certificate is expired. Credit to this fix to the guys from the aaPanel forum.
|
I'm so glad for everything solved out. Also thank you so much for good wishes. |
Hello, Had the same issue, it seems to be related to the SSL certificate as @silicahd mentioned, I managed to get around it by adding the following flags in the $curl_info variable:
at the end of the open-ai/src/OpenAi.php file thank you @orhanerday for this amazing repo 👍 |
Edit : Neevermind after 24hours it works I'm having the same issue with Symfony.
|
Thank you very much. It's saved me hours of time. |
Hi there, I'm trying to set up a working example using Laravel but when I
dd($complete)
I getfalse
.$open_ai
returns a collection withengine
,headers
andcontentTypes
$engines
returns false as well, it's not even reading the library.$data
returnsnull
The text was updated successfully, but these errors were encountered: