Table of Contents

Class ModelRequest

Namespace
Glitch9.AIDevKit
public abstract class ModelRequest : RequestBody
Inheritance
object
RequestBody
ModelRequest
Derived

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.

public Dictionary<string, string> Metadata { get; set; }

Property Value

Dictionary<string, string>

Model

The AI model to use for the request.

public Model Model { get; set; }

Property Value

Model

N

The number of responses to generate. Defaults to 1.

public int? N { get; set; }

Property Value

int?

User

Optional (OpenAI only). A unique identifier for the end user. Helps OpenAI monitor and prevent abuse.

public string User { get; set; }

Property Value

string