ImageGenerationModelDyn

Trait ImageGenerationModelDyn 

Source
pub trait ImageGenerationModelDyn: Send + Sync {
    // Required methods
    fn image_generation(
        &self,
        request: ImageGenerationRequest,
    ) -> BoxFuture<'_, Result<ImageGenerationResponse<()>, ImageGenerationError>>;
    fn image_generation_request(
        &self,
    ) -> ImageGenerationRequestBuilder<ImageGenerationModelHandle<'_>>;
}
๐Ÿ‘ŽDeprecated since 0.25.0: DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use ImageGenerationModel instead.
Available on crate feature image only.

Required Methodsยง

Source

fn image_generation( &self, request: ImageGenerationRequest, ) -> BoxFuture<'_, Result<ImageGenerationResponse<()>, ImageGenerationError>>

๐Ÿ‘ŽDeprecated since 0.25.0: DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use ImageGenerationModel instead.
Source

fn image_generation_request( &self, ) -> ImageGenerationRequestBuilder<ImageGenerationModelHandle<'_>>

๐Ÿ‘ŽDeprecated since 0.25.0: DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use ImageGenerationModel instead.

Implementorsยง