Class AbstractOpenAIClientSettings
- java.lang.Object
-
- com.microsoft.semantickernel.connectors.ai.openai.util.AbstractOpenAIClientSettings
-
- Direct Known Subclasses:
AzureOpenAISettings,OpenAISettings
public abstract class AbstractOpenAIClientSettings extends Object
Settings for an OpenAI client that uses a specific OpenAI provider such as openai.com or Azure OpenAI.
-
-
Constructor Summary
Constructors Constructor Description AbstractOpenAIClientSettings()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanassertIsValid()Check if the settings are validabstract StringgetKey()Get the OpenAI client keystatic StringgetKeySuffix()Get the KEY_SUFFIX value
-
-
-
Method Detail
-
assertIsValid
public abstract boolean assertIsValid() throws ConfigurationExceptionCheck if the settings are valid- Returns:
- true if the settings are valid
- Throws:
ConfigurationException
-
getKey
public abstract String getKey() throws ConfigurationException
Get the OpenAI client key- Returns:
- OpenAI client key
- Throws:
ConfigurationException
-
getKeySuffix
public static String getKeySuffix()
Get the KEY_SUFFIX value- Returns:
- the KEY_SUFFIX value
-
-