aisuite

screen shot for aisuite

Simple, unified interface to multiple Generative AI providers

aisuite is a Python library designed to simplify the use of multiple Large Language Models (LLMs) for developers. It offers a unified interface, resembling OpenAI's API, allowing seamless interaction with various popular LLMs, such as OpenAI, Anthropic, Google, and others. This empowers developers to easily compare and test responses from different providers without modifying their code. Currently focused on chat completions, aisuite acts as a thin wrapper around provider-specific libraries, maximizing stability through direct HTTP endpoints or SDK usage, and is released under the MIT License.

With aisuite, developers can easily swap and experiment with LLMs to generate chat completions using a consistent API. It streamlines the process of managing different provider APIs through a standardized format for model specification (<provider>:<model-name>). The library supports various providers and encourages community contributions, adhering to clear conventions for adding new platforms. The package is easy to install, requiring only provider API keys and the provider-specific libraries.

https://github.com/andrewyng/aisuite

Similar