openai-cpp
openai-cpp copied to clipboard
OpenAI C++ is a community-maintained library for the Open AI API
Hey, thank you for this project! It's truly amazing! I was wondering if there is any plan to integrate the new OpenAI releases into the library. I'm especially interested in...
Does this support stream response? So I can continue accept partial message, and have nicer responding to user. https://platform.openai.com/docs/api-reference/chat/create#chat/create-stream
The function "std::getenv()" is flagged as insecure in Visual Studio ([why](https://stackoverflow.com/questions/48568707/getenv-function-may-be-unsafe-really)) , in order to fix this, I changed the functions to "_dupenv_s()" instead. The code is still the same...
Using VS 2022 The following response from OpenAI triggers a fatal but silent throw. Errors would be better handled by setting an error flag and storing the output for user...
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...
If I want to use multiple sks and dynamically change sks, how should I write them because a single sk affects the rate?
I am testing this: ``` openai::start("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); // Or you can handle it yourself auto completion = openai::completion().create(R"( { "model": "text-davinci-003", "prompt": "Say this is a test", "max_tokens": 7, "temperature": 0...
I have installed libcurl on Windows (in D:/curl) by following your instructions after I ran into "You might have difficulties handling libcurl where CMake throws Could NOT find CURL (missing:...
`void OpenAI::setProxy(const std::string& url)` is available in public interface and should be documented.
I'm glad to see this excellent work. Is this third-party library support tool call mode? If so, could you please provide the corresponding Sample?