liboai  by D7EAD

C++ SDK for OpenAI API

created 2 years ago
441 stars

Top 68.9% on sourcepulse

GitHubView on GitHub
Project Summary

liboai is an unofficial C++17 library providing access to the full OpenAI API, targeting C++ developers who need to integrate AI capabilities into their applications. It offers a structure similar to OpenAI's Python library, simplifying API interactions for tasks like text generation, audio processing, and image creation.

How It Works

The library leverages C++17 features and relies on two core dependencies: nlohmann-json for JSON parsing and cURL for network communication. This approach allows for efficient, native integration of OpenAI services within C++ projects, providing a familiar API pattern for those accustomed to the Python SDK.

Quick Start & Requirements

Highlighted Details

  • Supports a comprehensive range of OpenAI API endpoints, including ChatGPT, DALL-E, Audio, Embeddings, and Fine-tunes.
  • Features asynchronous support for non-blocking API calls.
  • Demonstrates a C++ API design closely mirroring OpenAI's Python library for ease of transition.
  • Includes Azure API compatibility.

Maintenance & Community

The project is maintained by D7EAD. Contributions are welcomed via Pull Requests, and issues/feature suggestions can be raised through the GitHub repository.

Licensing & Compatibility

The library's license is not explicitly stated in the README. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The provided C++ examples are noted as minimal and not exception-safe. Users are directed to the documentation for more robust code snippets. The license status requires clarification for commercial adoption.

Health Check
Last commit

5 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
29 stars in the last 90 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Core Contributor to Hugging Face Transformers and Diffusers) and Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera).

client-python by mistralai

0.3%
628
Python SDK for Mistral AI platform
created 1 year ago
updated 1 week ago
Feedback? Help us improve.