Forum Discussion
nhtkid
May 21, 2023Iron Contributor
How to query Azure OpenAI model in Power Automate
Hi,
When I used the public OpenAI model, I do a POST to its endpoint URL https://api.openai.com/v1/chat/completions, for example.
Then in the content type, I used key Content-Type=application/json and Authorization=Bearer "My OpenAI API Key".
Now I have created the Azure OpenAI resource and deployed my own GPT 3 model.
I see my endpoint URL, what about the rest?
Do I use the same format as
Content-Type=application/json
Authorization=Bearer "My Azure OpenAI API Key
I couldn't get it working and when using POSTMAN, it just says resource not found.
Thanks,
1 Reply
Sort By
- leolorenzoluisCopper ContributorMake sure you have the model name/deployment as part of the request.