Class NovaRouteAiProvider

All Implemented Interfaces:
PropertyChangeSource, Rebindable

public class NovaRouteAiProvider extends OpenAiChatCompletionsProvider
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
  • 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

      public String 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:
      getApiKeyHint in class OpenAiChatCompletionsProvider
      Returns:
      A multi-line string containing configuration instructions and examples.