Package org.machanism.machai.ai.provider.codemie


package org.machanism.machai.ai.provider.codemie
Provides integration with the EPAM CodeMie Code Assistant platform.

This package contains a Genai implementation that acquires OAuth 2.0 access tokens from the CodeMie OpenID Connect token endpoint, configures an OpenAI-compatible base URL and API key, and delegates request execution to the appropriate downstream provider for the selected model family.

Supported model routing

  • Models whose identifiers start with gpt- are delegated to the OpenAI-compatible provider.
  • Models whose identifiers start with gemini- are delegated to the Gemini provider.
  • Models whose identifiers start with claude- are delegated to the Claude provider.

Authentication behavior

  • If GENAI_USERNAME contains @, the provider uses the OAuth 2.0 password grant flow.
  • Otherwise, the provider uses the client credentials grant flow.

Configuration

  • GENAI_USERNAME: user e-mail address or client identifier.
  • GENAI_PASSWORD: password or client secret.
  • chatModel: target model identifier used to choose the downstream provider.
  • AUTH_URL: optional override for the default CodeMie token endpoint.