Class OllamaTextRequest
Inheritance
OllamaTextRequest
Assembly: Glitch9.AIDevKit.Provider.Ollama.dll
Syntax
public class OllamaTextRequest : OllamaRequest, IJsonRequest
Properties
|
Edit this page
View Source
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.
Declaration
[JsonProperty("format")]
public ResponseFormat Format { get; set; }
Property Value
|
Edit this page
View Source
Stream
Optional. If false the response will be returned as a single response object.
Declaration
[JsonProperty("stream")]
public bool Stream { get; set; }
Property Value
|
Edit this page
View Source
System
Optional. System message to override what is defined in the Modelfile.
Declaration
[JsonProperty("system")]
public string System { get; set; }
Property Value
Methods
|
Edit this page
View Source
SetJsonSchema(StrictJsonSchema)
Declaration
public OllamaTextRequest SetJsonSchema(StrictJsonSchema jsonSchema)
Parameters
Returns
|
Edit this page
View Source
SetJsonSchema(Type)
Declaration
public OllamaTextRequest SetJsonSchema(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
Implements
Extension Methods