Table of Contents

Enum TextResponseFormat

Namespace
OpenAI
Assembly
OpenAI-DotNet.dll
public enum TextResponseFormat

Fields

Auto = 0
[Obsolete("use JsonSchema instead")] [EnumMember(Value = "json_object")] Json = 2

JSON object response format. An older method of generating JSON responses. Using json_schema is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.

Not recommended for gpt-4o and newer models!

[EnumMember(Value = "json_schema")] JsonSchema = 3

JSON Schema response format. Used to generate structured JSON responses.

[EnumMember(Value = "text")] Text = 1

Default response format. Used to generate text responses.