Class ChatCompletionResponseFormatType

java.lang.Object
com.azure.core.util.ExpandableStringEnum<ChatCompletionResponseFormatType>
com.azure.search.documents.indexes.models.ChatCompletionResponseFormatType
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class ChatCompletionResponseFormatType extends com.azure.core.util.ExpandableStringEnum<ChatCompletionResponseFormatType>
Specifies how the LLM should format the response. Possible values: 'text' (plain string), 'json_object' (arbitrary JSON), or 'json_schema' (adheres to provided schema).
  • Field Details

  • Constructor Details

    • ChatCompletionResponseFormatType

      @Deprecated public ChatCompletionResponseFormatType()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of ChatCompletionResponseFormatType value.
  • Method Details

    • fromString

      public static ChatCompletionResponseFormatType fromString(String name)
      Creates or finds a ChatCompletionResponseFormatType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding ChatCompletionResponseFormatType.
    • values

      Gets known ChatCompletionResponseFormatType values.
      Returns:
      known ChatCompletionResponseFormatType values.