Module client

Source
Expand description

This module provides traits for defining and creating provider clients. Clients are used to create models for completion, embeddings, etc. Dyn-compatible traits have been provided to allow for more provider-agnostic code.

Re-exports§

pub use crate::client::completion::CompletionClient;
pub use crate::client::embeddings::EmbeddingsClient;
pub use crate::client::transcription::TranscriptionClient;

Modules§

audio_generation
builder
completion
embeddings
image_generation
transcription

Macros§

impl_audio_generation
impl_conversion_traits
Implements the conversion traits for a given struct
impl_image_generation

Enums§

ClientBuilderError
ProviderValue

Traits§

AsAudioGeneration
Attempt to convert a ProviderClient to a AudioGenerationClient
AsCompletion
Attempt to convert a ProviderClient to a CompletionClient
AsEmbeddings
Attempt to convert a ProviderClient to a EmbeddingsClient
AsImageGeneration
Attempt to convert a ProviderClient to a ImageGenerationClient
AsTranscription
Attempt to convert a ProviderClient to a TranscriptionClient
ProviderClient
The base ProviderClient trait, facilitates conversion between client types and creating a client from the environment.