Completion

@JsonSerializable
data class Completion(val model: ModelName, val prompt: UserPrompt, val images: List<Base64Blob>? = null, val stream: Boolean? = false, val system: SystemPrompt? = null, val format: ResponseFormat? = null, val template: Template? = null, val raw: Boolean? = null, val keep_alive: String? = null, val options: ModelOptions? = null) : OllamaAction<Sequence<CompletionResponse>> (source)

Constructors

Link copied to clipboard
constructor(model: ModelName, prompt: UserPrompt, images: List<Base64Blob>? = null, stream: Boolean? = false, system: SystemPrompt? = null, format: ResponseFormat? = null, template: Template? = null, raw: Boolean? = null, keep_alive: String? = null, options: ModelOptions? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val raw: Boolean?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toRequest(): Request
Link copied to clipboard
open override fun toResult(response: Response): Result<Sequence<CompletionResponse>, RemoteFailure>