Class AIRequest
public abstract class AIRequest : IJsonRequest
- Inheritance
-
objectAIRequest
- 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 ServerDictionary Metadata { get; set; }
Property Value
Model
The AI model to use for the request.
public string Model { get; set; }
Property Value
- string
N
The number of responses to generate. Defaults to 1.
public int? N { get; set; }
Property Value
- int?
SafetyIdentifier
A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. The IDs should be a string that uniquely identifies each user. We recommend hashing their username or email address, in order to avoid sending us any identifying information. https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers
public SafetyIdentifier SafetyIdentifier { get; set; }
Property Value
User
Optional. A unique identifier for the end user. Helps OpenAI monitor and prevent abuse.
[Obsolete("Use SafetyIdentifier instead. 'user' is deprecated by OpenAI.")]
public SafetyIdentifier User { get; set; }