Azure OpenAI Model Registry (azure/AzureOpenAiChatModelName.java)

langchain4j · langchain4j-azure-open-ai/src/main/java/dev/langchain4j/model/azure/AzureOpenAiChatModelName.java · java · Apache-2.0
ai, infra, lang:java

Defines supported Azure OpenAI chat model identifiers and aliases. Use this to ensure type-safe model selection when integrating Azure AI services into your application.

// Source: https://github.com/langchain4j/langchain4j | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package dev.langchain4j.model.azure;

/**
 * You can get the latest model names from the Azure OpenAI documentation or by executing the Azure CLI command:
 * az cognitiveservices account list-models --resource-group "$RESOURCE_GROUP" --name "$AI_SERVICE" -o table
 */
public enum AzureOpenAiChatModelName {

    GPT_3_5_TURBO("gpt-35-turbo", "gpt-3.5-turbo"), // alias for the latest gpt-3.5-turbo model
    GPT_3_5_TURBO_0301("gpt-35-turbo-0301", "gpt-3.5-turbo", "0301"), // 4k context, functions
    GPT_3_5_TURBO_0613("gpt-35-turbo-0613", "gpt-3.5-turbo", "0613"), // 4k context, fun

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key