Custom

@Serializable
data class Custom(val value: JsonElement, val model: String, val options: Map<String, JsonElement>? = null) : InferenceInput

Arbitrary input, for a model that takes something other than one document or one image.

Constructors

Link copied to clipboard
constructor(value: JsonElement, model: String, options: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard
@SerialName(value = "model")
open override val model: String

The model that produces the vector. Which names are valid depends on the server's provider.

Link copied to clipboard
@SerialName(value = "options")
open override val options: Map<String, JsonElement>?

Model-specific options, passed to the inference service as they are.

Link copied to clipboard
@SerialName(value = "object")
val value: JsonElement