Class AzureOpenAISettings
- java.lang.Object
-
- com.microsoft.semantickernel.connectors.ai.openai.util.AbstractOpenAIClientSettings
-
- com.microsoft.semantickernel.connectors.ai.openai.util.AzureOpenAISettings
-
public class AzureOpenAISettings extends AbstractOpenAIClientSettings
Settings for Azure OpenAI client
-
-
Constructor Summary
Constructors Constructor Description AzureOpenAISettings(String settingsPrefix, Map<String,String> settings)AzureOpenAISettings(Map<String,String> settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanassertIsValid()Check if the settings are validAzureCredentialTypegetAzureOpenAiCredentialsType()static StringgetAzureOpenAiDeploymentNameSuffix()Get the AZURE_OPEN_AI_DEPLOYMENT_NAME_SUFFIX valuestatic StringgetAzureOpenAiEndpointSuffix()Get the AZURE_OPEN_AI_ENDPOINT_SUFFIX valuestatic StringgetDefaultSettingsPrefix()Get the DEFAULT_SETTINGS_PREFIX valueStringgetDeploymentName()Get the Azure OpenAI deployment nameStringgetEndpoint()Get the Azure OpenAI endpointStringgetKey()Get the OpenAI client key-
Methods inherited from class com.microsoft.semantickernel.connectors.ai.openai.util.AbstractOpenAIClientSettings
getKeySuffix
-
-
-
-
Method Detail
-
getEndpoint
public String getEndpoint() throws ConfigurationException
Get the Azure OpenAI endpoint- Returns:
- Azure OpenAI endpoint
- Throws:
ConfigurationException
-
getDeploymentName
public String getDeploymentName() throws ConfigurationException
Get the Azure OpenAI deployment name- Returns:
- Azure OpenAI deployment name
- Throws:
ConfigurationException
-
getKey
public String getKey() throws ConfigurationException
Description copied from class:AbstractOpenAIClientSettingsGet the OpenAI client key- Specified by:
getKeyin classAbstractOpenAIClientSettings- Returns:
- OpenAI client key
- Throws:
ConfigurationException
-
getAzureOpenAiCredentialsType
public AzureCredentialType getAzureOpenAiCredentialsType()
-
assertIsValid
public boolean assertIsValid() throws ConfigurationExceptionDescription copied from class:AbstractOpenAIClientSettingsCheck if the settings are valid- Specified by:
assertIsValidin classAbstractOpenAIClientSettings- Returns:
- true if the settings are valid
- Throws:
ConfigurationException
-
getDefaultSettingsPrefix
public static String getDefaultSettingsPrefix()
Get the DEFAULT_SETTINGS_PREFIX value- Returns:
- the DEFAULT_SETTINGS_PREFIX value
-
getAzureOpenAiEndpointSuffix
public static String getAzureOpenAiEndpointSuffix()
Get the AZURE_OPEN_AI_ENDPOINT_SUFFIX value- Returns:
- the AZURE_OPEN_AI_ENDPOINT_SUFFIX value
-
getAzureOpenAiDeploymentNameSuffix
public static String getAzureOpenAiDeploymentNameSuffix()
Get the AZURE_OPEN_AI_DEPLOYMENT_NAME_SUFFIX value- Returns:
- the AZURE_OPEN_AI_DEPLOYMENT_NAME_SUFFIX value
-
-