Skip to content

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

Open
@ryxxjyx

Description

@ryxxjyx

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
点击解释代码会出现标题所示错误,是哪里配置不对吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions