-
-
Notifications
You must be signed in to change notification settings - Fork 530
Azure OpenAI
Tolga Kayhan edited this page May 11, 2023
·
2 revisions
Here is a sample configuration to use Azure OpenAI. Simply setting provider type to Azure will allow you to use library with Azure resources.
Azure OpenAI currently has two API versions: 2022-12-01 and 2023-03-15-preview. The 2022-12-01 version does not support ChatGpt, so 2023-03-15-preview is the default version. I suggest setting the APIVersion even if you use the default version, because I will be updating it with the latest version in the future.
https://azure.microsoft.com/en-us/products/cognitive-services/openai-service
{
"OpenAIServiceOptions": {
"ApiKey": "35...3a", //How can I get an app key? https://azure.microsoft.com/en-us/products/cognitive-services/openai-service
"DeploymentId": "test1", // marked as 2 in the above screenshot
"ResourceName": "betalgotest", // marked as 1 in the above screenshot
"ProviderType": "Azure", //Important, don't forget to add this if you want to use Azure OpenAI
//"ApiVersion": "2022-12-01" //optional
}
}
![image](https://private-user-images.githubusercontent.com/1096362/237790908-e9b872aa-c00c-4cd9-b035-240afaa152e0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODk5NTEsIm5iZiI6MTczODg4OTY1MSwicGF0aCI6Ii8xMDk2MzYyLzIzNzc5MDkwOC1lOWI4NzJhYS1jMDBjLTRjZDktYjAzNS0yNDBhZmFhMTUyZTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMDA1NDExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmFiZDE3NTM2MGUwZWUxM2Y4YjdkNWI2ZDMyNTYxN2Y2MjM3YmY5OGViNjk3MWI3ZTgwYjI2MGQ2YzlmM2E3NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.zP4WnUyP1zSv4EFPJjQnlVUqxY-XF8Dfm6dGVaEszws)