#chat #openai #ai

bin+lib simple-open-ai

A simple library for using openai api

1 unstable release

0.1.0 Nov 10, 2023

#1046 in Machine learning

MIT license

19KB
321 lines

Rust Chat and Speech Library

This Rust library is designed to provide a comprehensive suite of functionalities for building chat and speech processing applications. It includes modules for handling chat operations with AI models, performing speech-to-text (STT) and text-to-speech (TTS) conversions, and managing API-related errors.

Features

  • Chat completion API integration
  • Error handling for API requests
  • Speech-to-text (STT) processing capabilities
  • Text-to-speech (TTS) conversion with multiple format support

Getting Started

Prerequisites

  • Rust programming language
  • Cargo package manager

Installation

Add the following to your Cargo.toml file to include this library in your Rust project:

[dependencies]

[![Rust](https://github.com/Shahrooze/simple-open-ai/actions/workflows/rust.yml/badge.svg)](https://github.com/Shahrooze/simple-open-ai/actions/workflows/rust.yml)

Dependencies

~7–19MB
~261K SLoC