Class NovaRouteAiProvider
java.lang.Object
uno.anahata.asi.agi.event.BasicPropertyChangeSource
uno.anahata.asi.agi.provider.AbstractAiProvider
uno.anahata.asi.openai.compatible.OpenAiChatCompletionsProvider
uno.anahata.asi.novarouteai.NovaRouteAiProvider
- All Implemented Interfaces:
PropertyChangeSource, Rebindable
A provider implementation for NovarouteAI leveraging their OpenAI-compatible endpoints.
NovarouteAI offers access to open-source Chinese models and exposes an OpenAI-compatible
API interface. This class extends OpenAiChatCompletionsProvider to
reuse the robust OpenAI 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 NovarouteAI OpenAI-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 OpenAiChatCompletionsProvider
createHttpClient, createModel, createRequestBuilder, 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, hokusPocus, 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
-
NovaRouteAiProvider
public NovaRouteAiProvider()Constructs a new NovarouteAI OpenAI-compatible provider.Configures the base OpenAI-compatible provider to point to NovarouteAI's endpoint (
https://api.novarouteai.com/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 a standard header hint for the multi-key configuration file.
Implementation details: Provides the NovarouteAI-specific key format and suggested backup key labeling.
- Overrides:
getApiKeyHintin classOpenAiChatCompletionsProvider- Returns:
- A multi-line string containing configuration instructions and examples.
-

