Enum ProtifyAIProvider
- java.lang.Object
-
- java.lang.Enum<ProtifyAIProvider>
-
- ai.protify.core.internal.provider.ProtifyAIProvider
-
- All Implemented Interfaces:
AIProvider,java.io.Serializable,java.lang.Comparable<ProtifyAIProvider>
public enum ProtifyAIProvider extends java.lang.Enum<ProtifyAIProvider> implements AIProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetApiKeyVarName()java.util.Map<java.lang.String,java.lang.String>getHeaders(java.lang.String credential)java.lang.StringgetName()java.lang.Class<? extends AIProviderClient<?>>getProviderClientType()booleanisMimeTypeSupported(MimeType mimeType)java.lang.StringtoString()static ProtifyAIProvidervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProtifyAIProvider[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN_AI
public static final ProtifyAIProvider OPEN_AI
-
ANTHROPIC
public static final ProtifyAIProvider ANTHROPIC
-
GOOGLE
public static final ProtifyAIProvider GOOGLE
-
MISTRAL
public static final ProtifyAIProvider MISTRAL
-
GROQ
public static final ProtifyAIProvider GROQ
-
DEEP_SEEK
public static final ProtifyAIProvider DEEP_SEEK
-
TOGETHER
public static final ProtifyAIProvider TOGETHER
-
FIREWORKS
public static final ProtifyAIProvider FIREWORKS
-
X_AI
public static final ProtifyAIProvider X_AI
-
AZURE_OPEN_AI
public static final ProtifyAIProvider AZURE_OPEN_AI
-
VERTEX_AI
public static final ProtifyAIProvider VERTEX_AI
-
AWS_BEDROCK
public static final ProtifyAIProvider AWS_BEDROCK
-
-
Method Detail
-
values
public static ProtifyAIProvider[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProtifyAIProvider c : ProtifyAIProvider.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtifyAIProvider valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceAIProvider
-
getApiKeyVarName
public java.lang.String getApiKeyVarName()
- Specified by:
getApiKeyVarNamein interfaceAIProvider
-
isMimeTypeSupported
public boolean isMimeTypeSupported(MimeType mimeType)
- Specified by:
isMimeTypeSupportedin interfaceAIProvider
-
getProviderClientType
public java.lang.Class<? extends AIProviderClient<?>> getProviderClientType()
- Specified by:
getProviderClientTypein interfaceAIProvider
-
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders(java.lang.String credential)
- Specified by:
getHeadersin interfaceAIProvider
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<ProtifyAIProvider>
-
-