Class CodeMieProvider.OpenAIProviderExtension

All Implemented Interfaces:
EmbeddingProvider, ProcessProvider
Enclosing class:
CodeMieProvider

private final class CodeMieProvider.OpenAIProviderExtension extends OpenAIProvider
OpenAI provider extension that refreshes the CodeMie access token.
  • Field Details

    • username

      private final String username
      User name supplied to the CodeMie token endpoint.
    • resolvedAuthUrl

      private final String resolvedAuthUrl
      Token endpoint used to obtain the access token.
    • password

      private final String password
      Password or client secret supplied to the token endpoint.
  • Constructor Details

    • OpenAIProviderExtension

      private OpenAIProviderExtension(String username, String resolvedAuthUrl, String password)
      Creates an OpenAI extension with the credentials used for token refresh.
  • Method Details

    • getClient

      public com.openai.client.OpenAIClient getClient()
      Refreshes the access token and creates the configured OpenAI client.
      Overrides:
      getClient in class OpenAIProvider
      Returns:
      OpenAI client