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

feat: 增加Azure OpenAI服务的支持 #418

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LazyBug1E0CF
Copy link

由于openai不支持使用国内信用卡,其api的免费额度到期或用完后就用不了了。为了解决这个问题,在model中添加了Azure OpenAI服务。
微软和openai的关系众所周知,他家的azure中也提供了openai服务,而azure是可以使用国内信用卡的。
由于同样是使用openai的python库,只是部分参数略有区别,相关代码基本直接copy自chatgpt_model.py,更改其中部分参数即可实现对azure openai的调用。

@DreamWenzhe
Copy link

可以可以 已经用上了..

@zken2002
Copy link

谢谢大佬

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

Successfully merging this pull request may close these issues.

3 participants