Class OllamaTextRequest
public class OllamaTextRequest : OllamaRequest
- Inheritance
-
objectOllamaTextRequest
- 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
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
jsonSchemaStrictJsonSchema
Returns
SetJsonSchema(Type)
public OllamaTextRequest SetJsonSchema(Type type)
Parameters
typeType