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

400 Range of input length should be [1, 6000] #32

Open
ryxxjyx opened this issue Jul 10, 2024 · 1 comment
Open

400 Range of input length should be [1, 6000] #32

ryxxjyx opened this issue Jul 10, 2024 · 1 comment
Labels
question Further information is requested

Comments

@ryxxjyx
Copy link

ryxxjyx commented Jul 10, 2024

1.我使用阿里通义千问申请了api-key

api-key 为sk-b85xxxxxxx
需要删掉sk-前缀吗?

2.根据官方文档

兼容OpenAI需要信息
base_url表示模型服务的网络访问点或地址。通过该地址,您可以访问服务提供的功能或数据。在Web服务或API的使用中,base_url通常对应于服务的具体操作或资源的URL。当您使用OpenAI兼容接口来使用DashScope模型服务时,需要配置base_url。

当您通过OpenAI SDK或其他OpenAI兼容的SDK调用时,需要配置的base_url如下:

https://dashscope.aliyuncs.com/compatible-mode/v1

设置模型为qwen-turbo
点击解释代码会出现标题所示错误,是哪里配置不对吗?

@2214962083
Copy link
Contributor

你设置的没错,主要是因为你代码量超出了模型所支持的代码量,有两个方案,一个是,设置一个支持更长上下文的模型qwen-long,另一个方案是,用鼠标选中特定的代码部分,然后右键再转换。

@2214962083 2214962083 added the question Further information is requested label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants