gpt_academic icon indicating copy to clipboard operation
gpt_academic copied to clipboard

能不能使用azure openai key?

Open Moss-qc opened this issue 2 years ago • 8 comments

代理服务器不够稳定,更麻烦的是给openai续费,还要个美国信用卡

非常好的应用,希望出更多的插件功能,谢谢

Moss-qc avatar Apr 01 '23 16:04 Moss-qc

能详细说说吗,啥是azure openai key

binary-husky avatar Apr 02 '23 09:04 binary-husky

https://github.com/openai/openai-python#microsoft-azure-endpoints 这里有azure key和URL的使用示例 https://github.com/stulzq/azure-openai-proxy 后端代理转换azure key到openAI key

经过实际测试azure到openai有专线,调azure url比直接调openai响应快很多, 最关键的是省虚拟信用卡手续费

Moss-qc avatar Apr 02 '23 09:04 Moss-qc

好的谢谢,我们调查下相关情况

binary-husky avatar Apr 02 '23 09:04 binary-husky

I also looking for a solution with the Azure OpenAPI key instead of the ChatGPT API key. Looking forward to this feature to update

kotobuki09 avatar Apr 04 '23 23:04 kotobuki09

I also looking for a solution with the Azure OpenAPI key instead of the ChatGPT API key. Looking forward to this feature to update

get, working on it

binary-husky avatar Apr 05 '23 06:04 binary-husky

I found out about this solution: https://github.com/haibbo/cf-openai-azure-proxy This required: a custom API domain and an Azure API key. I think it's reduced the modification in the code!

kotobuki09 avatar Apr 06 '23 18:04 kotobuki09

I try to use the azure openai key by changing the API key and URL. After removing the verify openai key, I still got this issue and I couldn't find where in the code giving this. Do anyone been successful in doing so?

缺少api_key。

临时解决方案:直接在输入区键入api_key,然后回车提交。

长效解决方案:在config.py中配置。

kotobuki09 avatar Apr 17 '23 10:04 kotobuki09

I try to use the azure openai key by changing the API key and URL. After removing the verify openai key, I still got this issue and I couldn't find where in the code giving this. Do anyone been successful in doing so?

缺少api_key。

临时解决方案:直接在输入区键入api_key,然后回车提交。

长效解决方案:在config.py中配置。

同求

behinder85 avatar Apr 25 '23 18:04 behinder85

感谢作者 同求!!

kn1ghtjay avatar Jun 01 '23 00:06 kn1ghtjay

我也出现了同样的问题。测试别的开源程序都可以直接在openai的api上填写azure openai的key,然后输入cf代理的地址就可以直接访问openai,但是非常需要学术这个,希望作者可以帮忙。

JoWooShin avatar Aug 14 '23 01:08 JoWooShin

我是按这个网站的操作步骤进行的。https://www.evlit.com/65478.html

JoWooShin avatar Aug 14 '23 02:08 JoWooShin