Class ModelRequest
Inheritance
object
RequestBody
ModelRequest
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public abstract class ModelRequest : RequestBody
Properties
Metadata
Optional (OpenAI only). Custom metadata in key-value format (max 16 pairs). Keys: max 64 characters. Values: max 512 characters. Useful for storing additional structured data.
Declaration
public Dictionary<string, string> Metadata { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Model
The AI model to use for the request.
Declaration
public Model Model { get; set; }
Property Value
Type | Description |
---|---|
Model |
N
The number of responses to generate. Defaults to 1.
Declaration
public int? N { get; set; }
Property Value
Type | Description |
---|---|
int? |
User
Optional (OpenAI only). A unique identifier for the end user. Helps OpenAI monitor and prevent abuse.
Declaration
public string User { get; set; }
Property Value
Type | Description |
---|---|
string |