次の方法で共有


OpenAIPromptExecutionSettings.ResponseFormat Property

Definition

Gets or sets the response format to use for the completion.

[System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]
[System.Text.Json.Serialization.JsonPropertyName("response_format")]
public object? ResponseFormat { get; set; }
[<System.Text.Json.Serialization.JsonIgnore(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)>]
[<System.Text.Json.Serialization.JsonPropertyName("response_format")>]
member this.ResponseFormat : obj with get, set
Public Property ResponseFormat As Object

Property Value

Attributes

Remarks

Possible values are:

- String values: "json_object", "text";

- OpenAI.Chat.ChatResponseFormat object;

- Type object, which will be used to automatically create a JSON schema.

Applies to