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ยง
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.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.