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: 改进阿里模型 stream 模式 & 使其支持联网搜索能力 #856

Merged
merged 4 commits into from
Dec 24, 2023

Conversation

moondie
Copy link
Contributor

@moondie moondie commented Dec 21, 2023

通义千问支持stream的增量模式,不需要每次去掉上次的前缀;实测qwen-max联网模式效果不错,添加了联网模式。如果别的模型有问题可以改为单独给qwen-max开放

close #issue_number

我已确认该 PR 已自测通过,相关截图如下:
image

通义千问支持stream的增量模式,不需要每次去掉上次的前缀;实测qwen-max联网模式效果不错,添加了联网模式。如果别的模型有问题可以改为单独给qwen-max开放
@songquanpeng
Copy link
Owner

稍微解释一下,我之前对接的时候是不支持的,今天处理,感谢 PR

@songquanpeng songquanpeng changed the title Update relay-ali.go: 改进stream模式,添加联网搜索能力 feat: 改进阿里模型 stream 模式 & 使其支持联网搜索能力 Dec 24, 2023
@songquanpeng songquanpeng merged commit ee9e746 into songquanpeng:main Dec 24, 2023
@songquanpeng
Copy link
Owner

Thx~

@fatwang2
Copy link
Contributor

请问这个联网模式,要如何修改请求才能使用呀?

@songquanpeng
Copy link
Owner

@fatwang2 模型名称后面加 -internet

@fatwang2
Copy link
Contributor

fatwang2 commented Dec 26, 2023 via email

greeeds pushed a commit to greeeds/one-api that referenced this pull request Mar 3, 2024
…quanpeng#856)

* Update relay-ali.go: 改进stream模式,添加联网搜索能力

通义千问支持stream的增量模式,不需要每次去掉上次的前缀;实测qwen-max联网模式效果不错,添加了联网模式。如果别的模型有问题可以改为单独给qwen-max开放

* 删除"stream参数"

刚发现原来阿里api没有这个参数,上次误加了。

* refactor: only enable search when specified

* fix: remove custom suffix when get model ratio

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
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.

None yet

3 participants