Class ResponseFormat
- Namespace
- OpenAI.ObjectModels.RequestModels
- Assembly
- AntRunnerLib.dll
An object specifying the format that the model must output. Used to enable JSON mode.
public class ResponseFormat
- Inheritance
-
System.ObjectResponseFormat
- Inherited Members
-
System.Object.Equals(System.Object)System.Object.Equals(System.Object, System.Object)System.Object.GetHashCode()System.Object.GetType()System.Object.MemberwiseClone()System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ToString()
Properties
Type
Setting to json_object enables JSON mode. This guarantees that the message the model generates is valid JSON. Note that the message content may be partial if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
[JsonPropertyName("type")]
public string Type { get; set; }
Property Value
- System.String