Trait askitty::ai::im::traits::IM

source ·
pub trait IM {
    // Required methods
    fn new(
        host: String,
        model: String,
        api_key: String
    ) -> Result<Self, ImageGenError>
       where Self: Sized;
    fn generate(
        &self,
        text: String
    ) -> impl Future<Output = Result<(), ImageGenError>> + Send;
}

Required Methods§

source

fn new( host: String, model: String, api_key: String ) -> Result<Self, ImageGenError>
where Self: Sized,

source

fn generate( &self, text: String ) -> impl Future<Output = Result<(), ImageGenError>> + Send

Object Safety§

This trait is not object safe.

Implementors§