gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

Add support for Azure OpenAI

Open herbutant opened this issue 1 year ago • 3 comments

I'd appreciate a configuration option to use our corporate instance of OpenAI in Azure instead of the standard openAI one.

herbutant avatar Jun 22 '23 12:06 herbutant

similar to

  • https://github.com/AntonOsika/gpt-engineer/issues/337

duplicate of

  • https://github.com/AntonOsika/gpt-engineer/issues/324

hannesdelbeke avatar Jun 22 '23 20:06 hannesdelbeke

It uses the openai library dude, open up ai.py and add the openai.base, openai.versuon and change model to engine.

Or write 6 python functions with different prompts because that's all this code is, calling an API 6 times

Cytranics avatar Jun 23 '23 03:06 Cytranics

@Cytranics that sounds straight forward. What's keeping you from making a pull request that does all that based on ENV variables?

herbutant avatar Jun 23 '23 08:06 herbutant

This can probably help https://github.com/AntonOsika/gpt-engineer/issues/530#issuecomment-1639759684

SebLz avatar Jul 18 '23 08:07 SebLz

Solved 🚀

AntonOsika avatar Sep 02 '23 16:09 AntonOsika