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]: [31m[2024-09-11 10:56:27.214] /app/pkg/pipeline/controller.py (94) - [ERROR] : 模型请求失败: 请求参数错误: Error code: 400 - {'error': {'message': "* GenerateContentRequest.contents[0].parts[0].data: required oneof field 'data' must have one initialized field\n (request id: 202409111056268631070276dBm4C6R)", 'type': '', 'param': '', 'code': 400}}[0m #882

Open
lumosshythat opened this issue Sep 11, 2024 · 7 comments
Labels
bug? Bug或Bug修复相关 m: Provider OpenAI API 或其他 LLM 模型相关

Comments

@lumosshythat
Copy link

消息平台适配器

aiocqhttp(使用 OneBot 协议接入的)

运行环境

Docker

QChatGPT版本

v3.3.3.1

异常情况

使用new api自建api节点,使用gpt4o模型正常,调用gemini模型报错400,在new api端设置名称映射把gemini换成gpt4o依然报错,使用消息平台为nepcat

启用的插件

No response

@lumosshythat lumosshythat added the bug? Bug或Bug修复相关 label Sep 11, 2024
@Olga19821109
Copy link

同问

@the-lazy-me
Copy link

看文档配置llm-models

@RockChinQ
Copy link
Owner

可以自己调试一下,最近在忙公司项目。
欢迎PR。

@Olga19821109
Copy link

Olga19821109 commented Sep 25, 2024 via email

@Olga19821109
Copy link

Olga19821109 commented Sep 25, 2024 via email

@FFFKLD
Copy link

FFFKLD commented Oct 16, 2024

请问解决了吗,我接入gemini也有类似的报错
image
image

@wowowolumosdwa
Copy link

wowowolumosdwa commented Oct 22, 2024

解决了,是项目的问题,和oneapi有个地方不兼容,换个源api,使用https://github.com/duolabmeng6/pro-api 可以调用

@RockChinQ RockChinQ added the m: Provider OpenAI API 或其他 LLM 模型相关 label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? Bug或Bug修复相关 m: Provider OpenAI API 或其他 LLM 模型相关
Projects
None yet
Development

No branches or pull requests

6 participants