embed
fun MockOllama.embed(name: String? = null, block: Consumer<OllamaEmbedRequestSpecification>): OllamaEmbedBuildingStep(source)
Provides a Java-compatible overload for configuring a mock /api/embed endpoint using a Consumer.
Allows Java code to specify the embedding request specification for the mock Ollama embed API.
Return
A building step for further response configuration.
Parameters
name
Optional name for the mock configuration.
block
Consumer that configures the embedding request specification.