你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatCompletionsResponseFormatJsonObject Class

Definition

A response format for Chat Completions that restricts responses to emitting valid JSON objects. Note that to enable JSON mode, some AI models may also require you to instruct the model to produce JSON via a system or user message.

public class ChatCompletionsResponseFormatJsonObject : Azure.AI.Inference.ChatCompletionsResponseFormat, System.ClientModel.Primitives.IJsonModel<Azure.AI.Inference.ChatCompletionsResponseFormatJsonObject>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Inference.ChatCompletionsResponseFormatJsonObject>
type ChatCompletionsResponseFormatJsonObject = class
    inherit ChatCompletionsResponseFormat
    interface IJsonModel<ChatCompletionsResponseFormatJsonObject>
    interface IPersistableModel<ChatCompletionsResponseFormatJsonObject>
Public Class ChatCompletionsResponseFormatJsonObject
Inherits ChatCompletionsResponseFormat
Implements IJsonModel(Of ChatCompletionsResponseFormatJsonObject), IPersistableModel(Of ChatCompletionsResponseFormatJsonObject)
Inheritance
ChatCompletionsResponseFormatJsonObject
Implements

Constructors

ChatCompletionsResponseFormatJsonObject()

Initializes a new instance of ChatCompletionsResponseFormatJsonObject.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ChatCompletionsResponseFormat>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ChatCompletionsResponseFormat)
IJsonModel<ChatCompletionsResponseFormat>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ChatCompletionsResponseFormat)
IJsonModel<ChatCompletionsResponseFormatJsonObject>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ChatCompletionsResponseFormatJsonObject>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ChatCompletionsResponseFormat>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ChatCompletionsResponseFormat)
IPersistableModel<ChatCompletionsResponseFormat>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ChatCompletionsResponseFormat)
IPersistableModel<ChatCompletionsResponseFormat>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ChatCompletionsResponseFormat)
IPersistableModel<ChatCompletionsResponseFormatJsonObject>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ChatCompletionsResponseFormatJsonObject>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ChatCompletionsResponseFormatJsonObject>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to