Class AzureOpenAiCredentials
java.lang.Object
org.springframework.ai.openai.setup.AzureOpenAiCredentials
Factory for adapting Azure credentials for use with OpenAI models hosted on Microsoft
Foundry.
- Since:
- 2.0.2
- Author:
- c.kai
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.openai.credential.Credentialfrom(com.azure.core.credential.TokenCredential tokenCredential) Adapt an AzureTokenCredentialto an OpenAICredential.
-
Method Details
-
from
public static com.openai.credential.Credential from(com.azure.core.credential.TokenCredential tokenCredential) Adapt an AzureTokenCredentialto an OpenAICredential.- Parameters:
tokenCredential- the Azure credential to adapt- Returns:
- an OpenAI credential configured for Microsoft Foundry
-