Class MinimaxAnthropicProvider
java.lang.Object
uno.anahata.asi.agi.event.BasicPropertyChangeSource
uno.anahata.asi.agi.provider.AbstractAiProvider
uno.anahata.asi.anthropic.AnthropicProvider
uno.anahata.asi.minimax.MinimaxAnthropicProvider
- All Implemented Interfaces:
PropertyChangeSource, Rebindable
A provider implementation for the MiniMax API leveraging their Anthropic-compatible endpoints.
MiniMax offers high-performance models (like M2.7, M2.5) and exposes an Anthropic-compatible
API interface. This class extends AnthropicProvider to
reuse the robust Anthropic payload generation and SSE parsing, simply overriding the
base URL and API key hints.
- Author:
- anahata
-
Field Summary
Fields inherited from class AbstractAiProvider
MARKUP_TABLE_HEADERFields inherited from class BasicPropertyChangeSource
propertyChangeSupport -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new MiniMax Anthropic-compatible provider. -
Method Summary
Modifier and TypeMethodDescriptionGets a template or hint string to display when the API keys file is empty.Methods inherited from class AnthropicProvider
createRequestBuilder, getHttpClient, hokusPocus, isRetryable, listModelsMethods inherited from class AbstractAiProvider
addModel, addModels, ensureKeysFileExists, findModels, getAllDisplayModels, getAllSupportedActions, getCachedApiModel, getCurrentKey, getEnabledModels, getKeyPoolSize, getKeysAcquisitionUri, getKeysFilePath, getModel, getModels, getModelsDirectory, getProviderDirectory, getProviderId, getUnloadableModelsDirectory, hasKeys, initialize, isEffectivelyEnabled, loadModelsFromDisk, persist, refreshCachedApiModels, reloadKeyPool, reloadKeyPoolIfNeeded, remove, removeModel, testConnection, toMarkupRow, toMarkupRowMethods inherited from class BasicPropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, rebind, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertyChangeSource
getPropertyChangeSupport
-
Constructor Details
-
MinimaxAnthropicProvider
public MinimaxAnthropicProvider()Constructs a new MiniMax Anthropic-compatible provider.Configures the base Anthropic provider to point to MiniMax's endpoint (
https://api.minimax.io/anthropic/v1) and sets the appropriate documentation URI for API key acquisition.
-
-
Method Details
-
getApiKeyHint
Gets a template or hint string to display when the API keys file is empty.Implementation details: Provides the MiniMax-specific key format including the
sk-api-prefix and suggested backup key labeling.- Overrides:
getApiKeyHintin classAnthropicProvider- Returns:
- A multi-line string containing configuration instructions and examples.
-

