oaapi 0.2.0

An unofficial Rust client for the OpenAI API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use bytes::Bytes;

use crate::audio::AudioApiError;
use crate::audio::TextFormatError;

/// The result of a speech stream.
pub type SpeechStreamResult = Result<Bytes, reqwest::Error>;

/// The result of an audio API calling.
pub type AudioApiResult<T> = Result<T, AudioApiError>;

/// The result of formatting a response text.
pub type TextFormatResult<T> = Result<T, TextFormatError>;