pub trait CompletionModelDyn: WasmCompatSend + WasmCompatSync {
// Required methods
fn completion(
&self,
request: CompletionRequest,
) -> WasmBoxedFuture<'_, Result<CompletionResponse<()>, CompletionError>>;
fn stream(
&self,
request: CompletionRequest,
) -> WasmBoxedFuture<'_, Result<StreamingCompletionResponse<FinalCompletionResponse>, CompletionError>>;
fn completion_request(
&self,
prompt: Message,
) -> CompletionRequestBuilder<CompletionModelHandle<'_>>;
}๐Deprecated since 0.25.0:
DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use CompletionModel instead.Required Methodsยง
fn completion( &self, request: CompletionRequest, ) -> WasmBoxedFuture<'_, Result<CompletionResponse<()>, CompletionError>>
๐Deprecated since 0.25.0:
DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use CompletionModel instead.fn stream( &self, request: CompletionRequest, ) -> WasmBoxedFuture<'_, Result<StreamingCompletionResponse<FinalCompletionResponse>, CompletionError>>
๐Deprecated since 0.25.0:
DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use CompletionModel instead.fn completion_request( &self, prompt: Message, ) -> CompletionRequestBuilder<CompletionModelHandle<'_>>
๐Deprecated since 0.25.0:
DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use CompletionModel instead.