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

[Bug] Cannot read properties of undefined (reading 'delta') #28

Closed
cui8 opened this issue Sep 21, 2023 · 13 comments
Closed

[Bug] Cannot read properties of undefined (reading 'delta') #28

cui8 opened this issue Sep 21, 2023 · 13 comments

Comments

@cui8
Copy link

cui8 commented Sep 21, 2023

实在是不好意思,一直打扰大佬了。这个问题属实是我个人使用出现的问题,不在大佬解决范围内,如果有打扰冒犯大佬的地方,请接受我的道歉,我不是有意的。
我使用 https://github.com/haibbo/cf-openai-azure-proxy 开源项目来把 Azure OpenAI 转为 ChatGPT 的格式,在 one-api 对接,然后再本项目使用,会出错,如下。
image
但在原版 Yidadaa/ ChatGPT-Next-Web 使用正常,这个问题该怎么解决?
image
我真的不是有意打扰大佬您的,如果大佬有什么需要,我可以提供 Azure OpenAI 所有参数。

@Issues-translate-bot
Copy link

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


I'm really sorry that I keep disturbing the boss. This problem is indeed a problem that occurred during my personal use and is not within the scope of the solution. If I have offended you, please accept my apology. I did not mean to do so.
I use the https://github.com/haibbo/cf-openai-azure-proxy open source project to convert Azure OpenAI to ChatGPT format, connect it to one-api, and then use it in this project, an error will occur, as follows.
image
But in the original Yidadaa/ ChatGPT-Next-Web works normally. How to solve this problem?
image
I really don’t mean to bother you, sir. If you need anything, I can provide all the parameters of Azure OpenAI.

@Hk-Gosuto
Copy link
Owner

Azure 版本的 OpenAI 接口虽然支持微调版本的模型,但是我试过他们接口的出参跟 OpenAI 官方接口的还是有区别,这个 langchain 并没有适配,所以这边调用插件的时候就报错了。

@Issues-translate-bot
Copy link

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


Although the Azure version of the OpenAI interface supports the fine-tuned version of the model, I have tried that the output parameters of their interface are still different from those of the official OpenAI interface. This langchain is not adapted, so when calling the plug-in here, an error is reported.

@cui8
Copy link
Author

cui8 commented Sep 21, 2023

Azure 版本的 OpenAI 接口虽然支持微调版本的模型,但是我试过他们接口的出参跟 OpenAI 官方接口的还是有区别,这个 langchain 并没有适配,所以这边调用插件的时候就报错了。

好的,谢谢大佬,不麻烦大佬了,也就我自己使用,不浪费大佬时间了

@Issues-translate-bot
Copy link

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


Although the Azure version of the OpenAI interface supports the fine-tuned version of the model, I have tried that the output parameters of their interface are still different from those of the official OpenAI interface. This langchain is not adapted, so when calling the plug-in here, an error is reported.

Okay, thank you, boss. I won’t bother you anymore. I’ll just use it myself. I won’t waste your time.

@cui8
Copy link
Author

cui8 commented Sep 21, 2023

再次感谢大佬,几天不见,就出了好玩的插件,可以娱乐一段时间了,感谢大佬的付出,辛苦了

@cui8 cui8 closed this as completed Sep 21, 2023
@Issues-translate-bot
Copy link

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


Thank you again, boss. After not seeing each other for a few days, a fun plug-in has been released, which can be used for entertainment for a while. Thank you for your hard work, boss.

@Hk-Gosuto
Copy link
Owner

我看了一下,Azure 版本的 OpenAI 有个预览版的函数调用,可以试试把模型升级到 0613 版本并将 api_version 设置为 2023-07-01-preview
我没验证,你可以试试看。

@Issues-translate-bot
Copy link

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


I took a look and found that the Azure version of OpenAI has a preview version of the function call. You can try upgrading the model to version 0613 and set api_version to 2023-07-01-preview.
I haven't verified it, you can try it.

@cui8
Copy link
Author

cui8 commented Sep 21, 2023

我看了一下,Azure 版本的 OpenAI 有个预览版的函数调用,可以试试把模型升级到 0613 版本并将 api_version 设置为 2023-07-01-preview。 我没验证,你可以试试看。

这个可以使用,大佬nb
image

@Issues-translate-bot
Copy link

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


I took a look and found that the Azure version of OpenAI has a preview version of the function call. You can try upgrading the model to version 0613 and set api_version to 2023-07-01-preview. I haven't verified it, you can try it.

This can be used, boss nb
image

@cui8
Copy link
Author

cui8 commented Sep 21, 2023

我都没发现这个可以使用,牛

@Issues-translate-bot
Copy link

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


I didn't even find this can be used, awesome

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

3 participants