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

[增加阿里云通义千问(qwen)的相关使用说明] #5047

Open
lNwNl opened this issue Jul 17, 2024 · 25 comments
Open

[增加阿里云通义千问(qwen)的相关使用说明] #5047

lNwNl opened this issue Jul 17, 2024 · 25 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@lNwNl
Copy link

lNwNl commented Jul 17, 2024

🥰 需求描述

看起来在最新(v2.13.0)版本的release中,已经加入了对于阿里云模型api的支持,但是我不确定正确的使用方法应该是什么,具体来说:

接口地址应该填入什么呢?(或保持默认?)
接口密钥是否是从阿里云百炼创建?
是否支持qwen-long?qwen-long支持很长的上下文,并能够解析上传的文档

🧐 解决方案

增加相关使用说明

📝 补充信息

No response

@lNwNl lNwNl added the enhancement New feature or request label Jul 17, 2024
@nextchat-manager
Copy link

Please follow the issue template to update title and description of your issue.

@Issues-translate-bot
Copy link

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


Title: [Add related instructions for Alibaba Cloud Tongyi Qianwen (qwen)]

🥰 Description of requirements

It seems that in the latest (v2.13.0) release, support for the Alibaba Cloud model API has been added, but I am not sure what the correct usage method is, specifically:

What should be filled in for the interface address? (or keep default?)
Is the interface key created from Alibaba Cloud Bailian?
Is qwen-long supported? qwen-long supports very long contexts and is able to parse uploaded documents

🧐 Solution

Add relevant instructions for use

📝 Supplementary information

No response

@QAbot-zh
Copy link

阿里渠道默认的接口地址是: ALIBABA_BASE_URL = "https://dashscope.aliyuncs.com/api/"
到密钥生成的地方看看是不是对应这个地址,如果是的话保持默认就行

@Issues-translate-bot
Copy link

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


The default interface address of Ali channel is: ALIBABA_BASE_URL = "https://dashscope.aliyuncs.com/api/"
Go to the place where the key is generated to see if it corresponds to this address. If so, just keep the default.

@lNwNl
Copy link
Author

lNwNl commented Jul 18, 2024

阿里渠道默认的接口地址是: ALIBABA_BASE_URL = "https://dashscope.aliyuncs.com/api/" 到密钥生成的地方看看是不是对应这个地址,如果是的话保持默认就行

感谢您的回复,我尝试了您提到的地址以及阿里云百炼平台使用curl方法访问模型的地址https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation,并填入了阿里云百炼平台生成的key,选择了正确的模型,仍旧没有成功
image
image

@Issues-translate-bot
Copy link

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


The default interface address of Ali channel is: ALIBABA_BASE_URL = "https://dashscope.aliyuncs.com/api/" Go to the place where the key is generated to see if it corresponds to this address. If so, just keep the default.

Thanks for your reply, I tried the address you mentioned and the address where Alibaba Cloud Bailian platform uses curl method to access the model https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation, And filled in the key generated by Alibaba Cloud Bailian platform and selected the correct model, but still no success
image
image

@lNwNl
Copy link
Author

lNwNl commented Jul 18, 2024

我进一步尝试了官方文档中提到的OpenAI Chat接口兼容中的两个url,同样没有成功,错误信息同上。
image

@Dogtiti Dogtiti added the documentation Improvements or additions to documentation label Jul 18, 2024
@ElricLiu
Copy link
Contributor

ElricLiu commented Jul 18, 2024

截屏2024-07-18 18 47 08
如果是从阿里官方申请的,直接填写申请的密钥即可,无需填写 base url @qNwNp

@Issues-translate-bot
Copy link

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


Screenshot 2024-07-18 18 47 08
If you apply from Alibaba official website, you can directly fill in the application key without filling in the base url.

@lNwNl
Copy link
Author

lNwNl commented Jul 18, 2024

如果是从阿里官方申请的,直接填写申请的密钥即可,无需填写 base url @qNwNp

@LiuElric 您好,我按照您图中所写的,其不再像原来一样报错,但是其仍旧没有正常工作,它回复了一段HTML,展示效果如下图所示:
image

@Issues-translate-bot
Copy link

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


If you apply from Alibaba official website, you can directly fill in the application key without filling in the base url @qNwNp

@LiuElric Hello, I followed what you wrote in the picture. It no longer reports the same error as before, but it still does not work normally. It replies with a piece of HTML, and the display effect is as shown in the figure below:
image

@jasonchio-cn
Copy link

image

我是通过docker部署的,没有添加任何环境变量。在模型中选择通义大模型,然后自定义模型中选Alibaba,填上阿里云百炼申请的SK就可以了

@Issues-translate-bot
Copy link

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


image

I deployed via docker without adding any environment variables. Select Tongyi Large Model in the model, then select Alibaba in the custom model, and fill in the SK applied for by Alibaba Cloud Bailian.

@jasonchio-cn
Copy link

image

我是通过docker部署的,没有添加任何环境变量。在模型中选择通义大模型,然后自定义模型中选Alibaba,填上阿里云百炼申请的SK就可以了

@qNwNp

@Issues-translate-bot
Copy link

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


![image](https://private-user-images.githubusercontent.com/36125147/350051523-5574c5d9-148d-49e6-a7a8-99c28001c1cc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3 MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMTk4ODksIm5iZiI6MTcyMTMxOTU4OSwicGF0aCI6Ii8zNjEyNTE0N y8zNTAwNTE1MjMtNTU3NGM1ZDktMTQ4ZC00OWU2LWE3YTgtOTljMjgwMDFjMWNjLnBuZz9YLUFtei 1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTU zUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDE2MTk0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlP TQ2NTFiM2VlYjBjNDI2OWQ5ZWJiNDlkZjQxZjg5M2NlZjUwYWE4NmZmZjAyMTZkNjFkMTI3NDgxODhkMzhiNDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcm Vwb19pZD0wIn0.iuYYVIatpOoEGzQ2bmurPmHcsPMUirUWPcQFNtHWnFY)

I deployed via docker without adding any environment variables. Select Tongyi Large Model in the model, then select Alibaba in the custom model, and fill in the SK applied for by Alibaba Cloud Bailian.

@qNwNp

@ElricLiu
Copy link
Contributor

如果是从阿里官方申请的,直接填写申请的密钥即可,无需填写 base url @qNwNp

@LiuElric 您好,我按照您图中所写的,其不再像原来一样报错,但是其仍旧没有正常工作,它回复了一段HTML,展示效果如下图所示: image

收到,你有在环境变量里面做什么操作吗?如果没有的话,可能需要检查一下 key 是否正确,我这边尝试直接填 key 是OK的

@Issues-translate-bot
Copy link

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


If you apply from Alibaba official website, you can directly fill in the application key without filling in the base url @qNwNp

@LiuElric Hello, I followed what you wrote in the picture, and it no longer reports the same error as before, but it still does not work normally. It replies with a piece of HTML, and the display effect is as shown in the figure below: ![image](https: //private-user-images.githubusercontent.com/75257874/349985560-83f77a93-4e60-406e-b30f-e6f3459656bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..rDnTtJvrc0j1 IHBlmNV_2Xqh0_xlE6bIIwMPyN8C6Sk)

Received, have you done anything in the environment variables? If not, you may need to check whether the key is correct. I tried to fill in the key directly and it was OK.

@walker27
Copy link

walker27 commented Jul 19, 2024

我也出现了这个问题,我下载的mac 2.13的版本返回也是html内容
image
但是我把这个git项目clone到本地并且切到2.13的tag用npm run dev测试,同样的配置却能正确运行
看起来像是next项目没有找到正确的路径

我本地执行run app:dev时跟mac 2.13版本出现一样的错误,控制台打印就只有这部分
image

我最后看了下问题出在app打包的时候 next的output为"export",打出来的包情况不太一样,我对next和tauri不太熟,只能看到这儿了

@ElricLiu
Copy link
Contributor

我也出现了这个问题,我下载的mac 2.13的版本返回也是html内容 image 但是我把这个git项目clone到本地并且切到2.13的tag用npm run dev测试,同样的配置却能正确运行 看起来像是next项目没有找到正确的路径

我本地执行run app:dev时跟mac 2.13版本出现一样的错误,控制台打印就只有这部分 image

我最后看了下问题出在app打包的时候 next的output为"export",打出来的包情况不太一样,我对next和tauri不太熟,只能看到这儿了

@Dogtiti

@Issues-translate-bot
Copy link

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


I also had this problem. The mac 2.13 version I downloaded also returned html content image But I cloned this git project locally and switched to the 2.13 tag to test it with npm run dev. The same configuration can Running correctly looks like the next project didn't find the correct path

When I execute run app:dev locally, the same error occurs as in the mac version 2.13. The console prints only this part image

I last checked that the problem was when the app was packaged, the output of next was "export", and the package situation was different. I am not familiar with next and tauri, so I can only see here.

@Dogtiti

@SOLOKEM
Copy link

SOLOKEM commented Jul 20, 2024

我也出现了这个问题,我下载的mac 2.13的版本返回也是html内容 image 但是我把这个git项目clone到本地并且切到2.13的tag用npm run dev测试,同样的配置却能正确运行 看起来像是next项目没有找到正确的路径

我本地执行run app:dev时跟mac 2.13版本出现一样的错误,控制台打印就只有这部分 image

我最后看了下问题出在app打包的时候 next的output为"export",打出来的包情况不太一样,我对next和tauri不太熟,只能看到这儿了

我的也是Mac客户端,2.13.1版本,完全相同的报错。

@Issues-translate-bot
Copy link

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


I also had this problem. The mac 2.13 version I downloaded also returned html content <img alt="image" width="676" src="https://private-user-images.githubusercontent.com/6702568/ But I cloned this git project locally and switched to the 2.13 tag to test it with npm run dev. The same configuration works Running correctly looks like the next project didn't find the correct path

When I execute run app:dev locally, the same error occurs as in the mac version 2.13. The console prints only this part image

I last checked that the problem was when the app was packaged, the output of next was "export", and the package situation was different. I am not familiar with next and tauri, so I can only see here.

Mine is also a Mac client, version 2.13.1, with exactly the same error.

@hejianjun
Copy link

后端报错了,提示 dynamic = "error" 但是使用了
searchParams

我添加上
export const dynamic = 'force-dynamic';就好使了

@Issues-translate-bot
Copy link

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


The backend reported an error, prompting dynamic = "error" but using
searchParams

I added
export const dynamic = 'force-dynamic'; just works

@hejianjun
Copy link

proxy.t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants