Share via


SupportedModels Class

  • java.lang.Object
    • com.azure.ai.contentunderstanding.models.SupportedModels

Implements

public final class SupportedModels
implements JsonSerializable<SupportedModels>

Chat completion and embedding models supported by the analyzer.

Method Summary

Modifier and Type Method and Description
static SupportedModels fromJson(JsonReader jsonReader)

Reads an instance of SupportedModels from the JsonReader.

List<String> getCompletion()

Get the completion property: Chat completion models supported by the analyzer.

List<String> getEmbedding()

Get the embedding property: Embedding models supported by the analyzer.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static SupportedModels fromJson(JsonReader jsonReader)

Reads an instance of SupportedModels from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SupportedModels if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SupportedModels.

getCompletion

public List<String> getCompletion()

Get the completion property: Chat completion models supported by the analyzer.

Returns:

the completion value.

getEmbedding

public List<String> getEmbedding()

Get the embedding property: Embedding models supported by the analyzer.

Returns:

the embedding value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to