MineDojo / Voyager

An Open-Ended Embodied Agent with Large Language Models
https://voyager.minedojo.org/
MIT License
5.34k stars 491 forks source link

Support Dedicated OpenAI API Deployments on Azure. #124

Open Steve235lab opened 9 months ago

Steve235lab commented 9 months ago

It originally only supports OPENAI_API_KEY with prefix "sk-" and accessing to default APIs hosted by OpenAI. Now with this patch, it can run with dedicated OpenAI APIs hosted on Azure. And of course it's still compatible with "sk-" keys.

Mixarar commented 9 months ago

I am still curious on how do you even get Azure OpenAI as it requires you to send an application, and it also requires you to be an approved Company.

Steve235lab commented 9 months ago

I am still curious on how do you even get Azure OpenAI as it requires you to send an application, and it also requires you to be an approved Company.

I am not in charge of this, so I can't tell you the details. By the way, we are enterprise users.

ALenTiger commented 2 months ago

Thank you so much, man! You saved me a lot of time, trouble, and money! Let me buy you a coffee or something! Everything worked apart for the embedings. I used the normal Open AI embeddings instead of Azure Open AI API it's only a few cents. Maybe it's something with my Python version I might try it out with a higher version then 3.9 if I find the time.

t0xk commented 1 month ago

I am still curious on how do you even get Azure OpenAI as it requires you to send an application, and it also requires you to be an approved Company.

If you are a student, provide the school info and you should be accepted through the Azure for Students program. Tested and true for 6/6 account that we used.