Hk-Gosuto / ChatGPT-Next-Web-LangChain

一键拥有你自己的 ChatGPT 网页服务。 One-Click to deploy your own ChatGPT web UI.(基于 langchain 实现的插件版本 Plugin version implemented based on langchain)
https://n3xt.chat
MIT License
1.15k stars 383 forks source link

azure官方api无法使用 #278

Closed zbzzh closed 4 months ago

zbzzh commented 5 months ago

Bug Description

{ "error": true, "message": "404 The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again." } 还需要转换为openai格式吗,原版的就不需要啊 链接我填的这个 https://xxx.openai.azure.com//openai/deployments 不能用

Steps to Reproduce

{ "error": true, "message": "404 The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again." } 还需要转换为openai格式吗,原版的就不需要啊 链接我填的这个 https://xxx.openai.azure.com//openai/deployments 不能用

Expected Behavior

123

Screenshots

No response

Deployment Method

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: azure official api cannot be used

Hk-Gosuto commented 5 months ago

按这个格式配置 image

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


Configure according to this format image

zbzzh commented 5 months ago

按这个格式配置 image

image

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


按这个格式配置 image

image

zbzzh commented 5 months ago

不行

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


no

Hk-Gosuto commented 5 months ago

检查以下你的接口地址,你上面发的地址里多了一个 /。 https://xxx.openai.azure.com//openai/deployments -> https://xxx.openai.azure.com/openai/deployments

我刚也部署了一个 gpt-4o 的模型,是可以正常使用的,环境是:https://n3xt.chat/

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


Check your interface address below. There is an extra / in the address you sent above. https://xxx.openai.azure.com//openai/deployments -> https://xxx.openai.azure.com/openai/deployments

I have just deployed a gpt-4o model and it can be used normally. The environment is: https://n3xt.chat/

zbzzh commented 5 months ago

检查以下你的接口地址,你上面发的地址里多了一个 /。 https://xxx.openai.azure.com/openai/deployments -> https://xxx.openai.azure.com/openai/deployments

我刚也部署了一个 gpt-4o 的模型,是可以正常使用的,环境是:https://n3xt.chat/

我就是用的你的demo

https://xxxx.openai.azure.com//openai/deployments image

image

能不能给个临时的联系方式呀,可以远程帮忙看下吗

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


Check your interface address below. There is an extra / in the address you sent above. https://xxx.openai.azure.com//openai/deployments -> https://xxx.openai.azure.com/openai/deployments

I have just deployed a gpt-4o model and it can be used normally. The environment is: https://n3xt.chat/

I just used your demo

https://xxxx.openai.azure.com//openai/deployments image

image

Can you give me temporary contact information? Can you help me remotely?

zbzzh commented 5 months ago

我去掉那个/了,还是不行

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


I removed that /, but it still doesn’t work

zbzzh commented 5 months ago

我找到原因了,模型名要写gpt4o而不是gpt-4o,我尝试修改一下,另外请问,gpt4o支持传文件吗

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


I found the reason. The model name should be written as gpt4o instead of gpt4o. Can this background be modified?

zbzzh commented 5 months ago

作者你好,我刚才测试文件上传功能时,在你的demo上传了一些个人资料,麻烦您能删除一下,涉及到个人隐私谢谢

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


Hello author, when I was testing the file upload function just now, I uploaded some personal information in your demo. Could you please delete it? It involves personal privacy. Thank you.

Hk-Gosuto commented 5 months ago

删掉了

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


deleted

Hk-Gosuto commented 5 months ago

我找到原因了,模型名要写gpt4o而不是gpt-4o,我尝试修改一下,另外请问,gpt4o支持传文件吗

支持函数调用的模型都可以,填写好相关的配置就行。

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


I found the reason. The model name should be written as gpt4o instead of gpt-4o. I will try to modify it. Also, does gpt4o support file transfer?

Any model that supports function calling is acceptable, just fill in the relevant configuration.

zbzzh commented 5 months ago

试了一下 传文件不行,他一直让我提供链接,我无论怎么发给他他都说不行

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


I tried it, but it didn't work. He kept asking me to provide a link. No matter how I sent it to him, he said it couldn't work.

Hk-Gosuto commented 5 months ago

可以引导 ai 使用 rag-search 插件进行文档检索,不然上下文中没用文件相关的内容。 这部分后面会做一些优化,把上传后的文件描述添加到系统提示词里。

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


You can guide AI to use the rag-search plug-in for document retrieval, otherwise there will be no file-related content in the context. Some optimizations will be done later in this part, and the uploaded file description will be added to the system prompt words.

zbzzh commented 5 months ago

强烈支持,现在很多人需要传文件这个功能,如果可以上传到第三方存储就更好了 顺便问下google custom search免费的api配额有多少

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


Strong support. Many people now need the function of uploading files. It would be better if they could be uploaded to third-party storage. By the way, what is the free API quota of Google Custom Search?

Hk-Gosuto commented 5 months ago

看文档中的描述应该是每天免费100次搜索。 https://developers.google.com/custom-search/v1/overview?hl=zh_CN

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically.


According to the description in the document, it should be 100 free searches per day. https://developers.google.com/custom-search/v1/overview?hl=zh_CN