labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.49k stars 4.69k forks source link

调用oneapi报错,请问怎么解决 #1063

Closed lixingxing1231 closed 5 months ago

lixingxing1231 commented 7 months ago

[ERROR] 2024-03-26 00:37:22 sse error: bad_response_status_code (request id: 2024032600371937190689128646579) { message: '500 (request id: 2024032600371937190689128646579)', stack: 'Error: 500 (request id: 2024032600371937190689128646579)\n' + ' at eL.generate (/app/projects/app/.next/server/chunks/53204.js:21:70210)\n' + ' at ax.makeStatusError (/app/projects/app/.next/server/chunks/53204.js:21:81454)\n' + ' at ax.makeRequest (/app/projects/app/.next/server/chunks/53204.js:21:82188)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' + ' at async u (/app/projects/app/.next/server/chunks/31119.js:85:200)\n' + ' at async /app/projects/app/.next/server/chunks/31119.js:87:255\n' + ' at async i (/app/projects/app/.next/server/chunks/31119.js:87:216)\n' + ' at async Object.d [as datasetSearchNode] (/app/projects/app/.next/server/chunks/1492.js:85:3561)\n' + ' at async I (/app/projects/app/.next/server/chunks/1492.js:85:7125)\n' + ' at async Promise.all (index 0)\n' + ' at async Promise.all (index 0)\n' + ' at async O (/app/projects/app/.next/server/chunks/1492.js:85:8195)\n' + ' at async l (/app/projects/app/.next/server/pages/api/core/chat/chatTest.js:1:2751)'

xiaoToby commented 6 months ago

还有其他的报错日志吗,这个日志看不出什么问题

c121914yu commented 6 months ago

看不出,这个是上游报错。。基本上是一些自己部署的模型,报错信息不清楚。

lixingxing1231 commented 6 months ago

image image 就是我请求fastgpt的接口传参stream为false时返回报错,为true时有能正常返回,不知道是什么原因

c121914yu commented 6 months ago

模型问题,你这个肯定是自己部署的模型吧? 有些接口都不适配非stream

lixingxing1231 commented 6 months ago

image 测试过接口是支持非stream模式的

Yuuchuin commented 6 months ago

我在遇到了跟你一模一样的问题,我是改了yml里面oneapi的baseUrl后,没有更新。docker-compose up -d 更新一下就解了

lixingxing1231 commented 6 months ago

那我这个不一样,我都重启n遍了

c121914yu commented 6 months ago

image 测试过接口是支持非stream模式的

你这个不是oneapi地址把

lixingxing1231 commented 6 months ago

![Uploading image.png…]() 我这是oneapi的地址

haibincoder commented 6 months ago

我遇到过和你一样的问题,非stream没问题,stream模式报500

当时解决流程如下: 每个模块都加日志,抓到日志后用curl或postman直接调用接口,一层一层看是哪个模块的接口问题,fastgpt->oneapi->本地模型

后面发现问题如下: 本地模型处理参数的方式不对,改了一下模型入参

xiaoToby commented 6 months ago

@haibincoder How to "每个模块都加日志"?