Class CompletionRequestBase
Inheritance
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public abstract class CompletionRequestBase : ModelRequest
Properties
AttachedFiles
Declaration
public List<IUniFile> AttachedFiles { get; set; }
Property Value
Type | Description |
---|---|
List<IUniFile> |
KeepAlive
Optional (Ollama-only). Controls how long the model will stay loaded into memory following the request.
Declaration
public string KeepAlive { get; set; }
Property Value
Type | Description |
---|---|
string |
ModelOptions
Configuration options for model generation and outputs. Not all parameters may be configurable for every model.
Declaration
public ModelOptions ModelOptions { get; set; }
Property Value
Type | Description |
---|---|
ModelOptions |
Models
Optional (OpenRouter-only). Alternate list of models for routing overrides.
Declaration
public List<string> Models { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
Prompt
Required if using OpenAI legacy models. Required for OpenRouter completion requests. The text prompt to complete
Declaration
public string Prompt { get; set; }
Property Value
Type | Description |
---|---|
string |
ReasoningOptions
Optional. Configuration for model reasoning/thinking tokens
Declaration
public ReasoningOptions ReasoningOptions { get; set; }
Property Value
Type | Description |
---|---|
ReasoningOptions |
ResponseFormat
An object specifying the format that the model must output.
Setting to { "type": "json_schema", "json_schema": { ...} }
enables Structured Outputs which ensures the model will match your supplied JSON schema.Learn more in the Structured Outputs guide.
Setting to { "type": "json_object" } enables the older JSON mode, which ensures the message the model generates is valid JSON.Using json_schema is preferred for models that support it.
Declaration
public ResponseFormat ResponseFormat { get; set; }
Property Value
Type | Description |
---|---|
ResponseFormat |
Stream
Optional. Enable streaming of results. Defaults to false
Declaration
public bool? Stream { get; set; }
Property Value
Type | Description |
---|---|
bool? |
StreamOptions
Optional. Whether to include usage information in the response
Declaration
public StreamOptions StreamOptions { get; set; }
Property Value
Type | Description |
---|---|
StreamOptions |
SystemInstruction
Optional. The system message to use for the model.
Declaration
public string SystemInstruction { get; set; }
Property Value
Type | Description |
---|---|
string |
Transforms
Optional (OpenRouter-only). List of prompt transforms.
Declaration
public List<string> Transforms { get; set; }
Property Value
Type | Description |
---|---|
List<string> |