#language-model #openai #api #user-friendly #interface #artificial-intelligence #seamless

aionic

AIonic: A unified, user-friendly Rust library for seamless integration with various public Language Model APIs, such as openAI

7 releases

0.1.7 Aug 10, 2023
0.1.6 Aug 9, 2023

#6 in #seamless

MIT license

1MB
2K SLoC

AIonic

AIonic logo

PRs welcome

AIonic is a Rust library designed to interface seamlessly with a range of public Language Model APIs, offering a streamlined, user-friendly experience. The name AIonic not only encapsulates our focus on AI, but also alludes to 'ionic bonds' — representing our mission to connect various elements of AI through a single interface. In a sense, just like ionic bonds facilitate the flow of electrons, AIonic promotes a seamless flow of data and functionality between different language models, all within the vibrant, performant world of Rust.

Examples

The examples/ folder houses a non exhaustive amount of API showcase examples. They can be tested by running cargo run --example <name> from the root directory of this project.

Status

The library is currently in very active development. We covered the following aspects:

  • openAI:
    • Chat
    • Images
    • Embeddings
    • Audio
    • Files
    • Fine-tunes
    • Moderations
  • Bard/PaLM2:
    • TODO
  • LLaMA:
    • TODO
  • Claude2:
    • TODO

Contributing

Contributions are welcome. Please open an issue to discuss your ideas before making large changes.

License

This project is licensed under the MIT License.

Dependencies

~16–33MB
~514K SLoC