Trait aiapi::Api

source ·
pub trait Api {
    // Required methods
    fn send<M: AsRef<Msg>>(
        &self,
        li: impl IntoIterator<Item = M> + Send,
    ) -> impl Future<Output = Result<Response>> + Send;
    fn max_tokens(&self) -> usize;
}

Required Methods§

source

fn send<M: AsRef<Msg>>( &self, li: impl IntoIterator<Item = M> + Send, ) -> impl Future<Output = Result<Response>> + Send

source

fn max_tokens(&self) -> usize

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Site + Sync> Api for OpenAI<T>