mshumer / gpt-author

MIT License
2.48k stars 359 forks source link

use of Azure ChatGPT's API #27

Open bohailaoyao opened 1 year ago

bohailaoyao commented 1 year ago

How can I do that? Can someone help me?

fuleinist commented 1 year ago

https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line&pivots=programming-language-python

based on which you should be able to connect to Azure by setting up the params below together with your api key

openai.api_type = "azure" openai.api_base = os.getenv("AZURE_OPENAI_ENDPOINT") openai.api_key = "YOUR OPENAI KEY"