environ["AZURE_EMBEDDING_DEPLOYMENT_NAME"], 149 143 openai_api_key=os.environ["AZURE_OPENAI_API_KEY"], 150 144 model=os.environ["AZURE_EMBEDDING_MODEL_NAME"], 151 - openai_api_base=os.environ["AZURE_OPENAI_API_BASE_URL"], 145 + azure_endpoint=os.environ["AZURE_OPENAI_API_BASE...
Microsoft Azure OpenAITo use this library with Azure OpenAI, use the AzureOpenAI class instead of the OpenAI class.Important The Azure API shape slightly differs from the core API shape which means that the static types for responses / params won't always be correct....
Azure OpenAI An example of using this library with Azure OpenAI can be foundhere. Please note there are subtle differences in API shape & behavior between the Azure OpenAI API and the OpenAI API, so using this library with Azure OpenAI may result in incorrect types, which can lead to bugs....
Microsoft Azure OpenAITo use this library with Azure OpenAI, use the AzureOpenAI class instead of the OpenAI class.Important The Azure API shape slightly differs from the core API shape which means that the static types for responses / params won't always be correct....
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/ai/OpenAI.Assistants/files/routes.tsp#L50-L57 API Spec version 2024-02-15-preview Describe the bug The "filename" of a File should not be in multipart/form-data model. Same in https://github.com/Azure/azure-rest-api...
Microsoft Azure OpenAITo use this library with Azure OpenAI, use the AzureOpenAI class instead of the OpenAI class.Important The Azure API shape slightly differs from the core API shape which means that the static types for responses / params won't always be correct....
An example of using this library with Azure OpenAI can be found here.Please note there are subtle differences in API shape & behavior between the Azure OpenAI API and the OpenAI API, so using this library with Azure OpenAI may result in incorrect types, which can lead to bugs....
import { AzureOpenAI } from 'openai'; import { getBearerTokenProvider, DefaultAzureCredential } from '@azure/identity'; const credential = new DefaultAzureCredential(); const scope = 'https://cognitiveservices.azure.com/.default'; const azureADTokenProvider = getBearerTokenProvider(credential, ...
To use this library with Azure OpenAI, use the AzureOpenAI class instead of the OpenAI class.Important The Azure API shape slightly differs from the core API shape which means that the static types for responses / params won't always be correct....
To use this library with Azure OpenAI, use the AzureOpenAI class instead of the OpenAI class.Important The Azure API shape slightly differs from the core API shape which means that the static types for responses / params won't always be correct....