Hi,
I would like to implement a chat-completion in php and I saw this library on this site:
Unfortunately it supports PHP 8.1 onwards and I can use PHP 5.6
Can anyone suggest me another library?
Or I was thinking of using curl instead of php because it seems to me that in this case a library is not needed… but I could be wrong so any advice is welcome!
You can always use plain curl functions, the API is pretty easy. But PHP 5.x stopped getting updates 4 years ago and is a security liability. I’d highly suggest finding a way to upgrade to 8.x.
yes I know. I went through various sites but they all support PHP version 7 onwards. I know PHP 5.6 is very old, but it’s the one I have and the one I have to use, no need to keep saying it
What you’re going to have to do is start by taking a php 7 library and trying to get it working with 5.x on your machine. I would probably look at the upgrade notes and see if you can find where the problem might be so you can translate.
You might try asking GPT-4 as well, but don’t expect miracles.