Skip to main content

ImageGenerationModel

Trait ImageGenerationModel 

Source
pub trait ImageGenerationModel: Send + Sync {
    // Required method
    fn generate_image(
        &self,
        request: ImageGenerationRequest,
        context: ModelCallContext,
    ) -> ModelFuture<'_, Result<ImageGenerationResponse, ModelError>>;
}
Expand description

Independent image-generation model boundary.

Required Methods§

Source

fn generate_image( &self, request: ImageGenerationRequest, context: ModelCallContext, ) -> ModelFuture<'_, Result<ImageGenerationResponse, ModelError>>

Generates complete image outputs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§