1
2
3
4
5
6
7
8
9
10
11
use crate::errors::ImageGenError;

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