Table of Contents

Class OllamaTextRequest

public class OllamaTextRequest : OllamaRequest
Inheritance
object
OllamaTextRequest
Inherited Members

Properties

Format

Optional. The format to return a response in. Format can be json or a JSON schema. If it's null, it's the plain text response.

public ResponseFormat Format { get; set; }

Property Value

ResponseFormat

Stream

Optional. If false the response will be returned as a single response object.

public bool Stream { get; set; }

Property Value

bool

System

Optional. System message to override what is defined in the Modelfile.

public string System { get; set; }

Property Value

string

Methods

SetJsonSchema(StrictJsonSchema)

public OllamaTextRequest SetJsonSchema(StrictJsonSchema jsonSchema)

Parameters

jsonSchema StrictJsonSchema

Returns

OllamaTextRequest

SetJsonSchema(Type)

public OllamaTextRequest SetJsonSchema(Type type)

Parameters

type Type

Returns

OllamaTextRequest