openai-cpp icon indicating copy to clipboard operation
openai-cpp copied to clipboard

OpenAI curl_easy_perform() failed: Unsupported protocol

Open audio-algorithms opened this issue 2 years ago • 1 comments

When I run your example I get the following curl error: "OpenAI curl_easy_perform() failed: Unsupported protocol"

I downloaded curl source and built it using cmake. I placed the DLL and LIB files in the same directory as the test executable.

Are there certain options I should enable when building curl?

audio-algorithms avatar Jun 19 '23 01:06 audio-algorithms

Hi I am not sure why you are getting these errors.

According to https://stackoverflow.com/questions/21612132/unsupported-protocol-using-curl-in-c and https://curl.se/mail/lib-2022-04/0019.html it seems that curl installation and linking are mostly the problem.

How do you link your library ? Can you precise what build steps you are doing ?

coin-au-carre avatar Jun 20 '23 07:06 coin-au-carre