Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use of Azure ChatGPT's API #27

Open
bohailaoyao opened this issue Oct 12, 2023 · 1 comment
Open

use of Azure ChatGPT's API #27

bohailaoyao opened this issue Oct 12, 2023 · 1 comment

Comments

@bohailaoyao
Copy link

How can I do that? Can someone help me?

@fuleinist
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants