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

azure-openai compatible with azure open ai api? #7

Closed
William-ywh opened this issue Nov 7, 2023 · 5 comments
Closed

azure-openai compatible with azure open ai api? #7

William-ywh opened this issue Nov 7, 2023 · 5 comments

Comments

@William-ywh
Copy link

Hi! Thanks for ur excellent work in implementing this great library for arduino and esp32 interacting with chatgpt. i hv met a question right now since i hv another free subscription of azure openai api, i wonder if this kind of key is compatible with ur library to use?

@0015
Copy link
Owner

0015 commented Nov 7, 2023

@William-ywh I don't think so. For using Azure openai API, you need to look into ways to connect. Usually there is curl and you need to convert it to http format.

@William-ywh
Copy link
Author

Thank you for ur prompt reply. i saw in ur example file that it has this code line: ChatGPT chat_gpt(&client, "v1", "<OpenAI_API_KEY>"). i just wonder if i can just fill in azure openai api key into the <OpenAI_API_KEY>?

@William-ywh
Copy link
Author

oh btw i hv one http link here for the azure api subscription: https://hkust.azure-api.net/openai/deployments/%7Bdeployment-id%7D/chat/completions?api-version=2023-05-15 i wonder if i hv this link then how can i use ur library?

@0015
Copy link
Owner

0015 commented Nov 14, 2023

Since the values returned from the API are different, this must be implemented accordingly.

@William-ywh
Copy link
Author

OK no problem. Thank you very much and this problem i hv solved already.

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