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: 自定义AI使用阿里云百炼的通义千问接口报错 #1555

Open
Jiang0977 opened this issue Nov 1, 2024 · 4 comments
Open

Bug: 自定义AI使用阿里云百炼的通义千问接口报错 #1555

Jiang0977 opened this issue Nov 1, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Jiang0977
Copy link

Chat2DB Version

3.4.1

Describe the bug

image
上面是通义千问AI配置,但是使用是报错:Tongyi Chat AI error:{"error":{"code":"missing_required_parameter","param":"message","message":"you must provide a messages parameter","type":"invalid_request_error"}}

@Jiang0977 Jiang0977 added the bug Something isn't working label Nov 1, 2024
@tmlx1990
Copy link
Contributor

tmlx1990 commented Nov 8, 2024

您好,是否是模型参数写的不对?我看官网给的案例是 "model": "qwen-plus"
https://bailian.console.aliyun.com/?spm=a2c4g.11186623.0.0.1a5e55efUuK0y2&accounttraceid=494cccbc11014cf1a6f54cba1bc77e68dsju#/model-market/detail/qwen-plus-0919
image

@tmlx1990
Copy link
Contributor

tmlx1990 commented Nov 9, 2024

这块是有点问题,需要使用 如下地址调用:https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation

image

如果你是代码自己部署,可以使用我提交的pr进行修改。如果是直接下载的安装包,需要等待后续发版。

@wuTong0369
Copy link

@tmlx1990 https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation
按照这个地址调用通义千问,会返回一大堆非sql的文本,这块是调通义千问接口参吗,还是如何处理.
或者官方推荐哪种第三方ai调用方式是简单好用的

@zeje
Copy link

zeje commented Dec 14, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@tmlx1990 @zeje @wuTong0369 @Jiang0977 and others