Class AzureOpenAiCredentials

java.lang.Object
org.springframework.ai.openai.setup.AzureOpenAiCredentials

public final class AzureOpenAiCredentials extends Object
Factory for adapting Azure credentials for use with OpenAI models hosted on Microsoft Foundry.
Since:
2.0.2
Author:
c.kai
  • Method Details

    • from

      public static com.openai.credential.Credential from(com.azure.core.credential.TokenCredential tokenCredential)
      Adapt an Azure TokenCredential to an OpenAI Credential.
      Parameters:
      tokenCredential - the Azure credential to adapt
      Returns:
      an OpenAI credential configured for Microsoft Foundry