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

OpenAI C++ is a community-maintained library for the Open AI API

Results 13 openai-cpp issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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

enhancement

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...

enhancement

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...

enhancement

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?

documentation
question

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...

bug
help wanted

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:...

documentation

`void OpenAI::setProxy(const std::string& url)` is available in public interface and should be documented.

documentation

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?