liboai
liboai copied to clipboard
A C++17 library to access the entire OpenAI API.
### Describe the bug I am trying to test run the example for generating completions within a code base just to get up and running with a project I'm trying...
### Describe the feature or improvement you're requesting /usr/include/c++/9/bits/unique_ptr.h:857:30: error: use of deleted function ‘liboai::ChatCompletion::ChatCompletion()’ 857 | { return unique_ptr(new _Tp(std::forward(__args)...)); } ### Additional context _No response_
### Describe the feature or improvement you're requesting _ Flag is only used in the construction of the CurlHolder class. Why not include it in the CurlHolder class to avoid...
### Describe the feature or improvement you're requesting I download the dev branch. and I built project from below example: https://github.com/D7EAD/liboai/blob/main/documentation/chat/examples/create_chat_completion.cpp one problem is I don't know how to call...
`v4.0.0` focuses mainly on the new OpenAI `functions` capability for their Chat endpoint. You can read about it [here](https://openai.com/blog/function-calling-and-other-api-updates). Basic additions/changes: * Replaces each class' move and copy constructors, assignment...
### Describe the bug ```sh $ dpkg -L libcurl4-openssl-dev /. /usr /usr/bin /usr/bin/curl-config /usr/include /usr/include/x86_64-linux-gnu /usr/include/x86_64-linux-gnu/curl /usr/include/x86_64-linux-gnu/curl/curl.h ...(omitted) /usr/share/doc/libcurl4-openssl-dev/changelog.Debian.gz $ cd liboai && cmake -Bbuild . CMake Error at CMakeLists.txt:6...
### Describe the bug The CMakeLists.txt does no longer install liboai.h. There is a comment that states that liboai.h is no longer needed. However, all examples still have a dependency...
### Describe the feature or improvement you're requesting It would be great if you could add proper support for the compilation of the library as DLL on Windows via the...
### Describe the bug The example "documentation/images/examples/download_generated_image.cpp" does currently no compile because the list of parameters of the method Network::Download did change. ### To Reproduce 1. Compile the example "documentation/images/examples/download_generated_image.cpp"...
### Describe the feature or improvement you're requesting Currently the API endpoint is hardcoded to "https://api.openai.com/v1". This makes it hard to use this library against other implementations of the OpenAI...