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.47k stars 4.69k forks source link

4.7版本 /v1/embeddings 报错 #1198

Closed yorke669 closed 4 months ago

yorke669 commented 6 months ago

例行检查

你的版本

问题描述

在知识库中,向量化知识失败

fastgpt_oneapi | [ERR] 2024/04/12 - 17:45:41 | 2024041217454176454496988398752 | request: POST /v1/embeddings fastgpt_oneapi | [ERR] 2024/04/12 - 17:45:41 | 2024041217454176454496988398752 | request body: { fastgpt_oneapi | "model": "embedding-2", fastgpt_oneapi | "input": [ fastgpt_oneapi | "qweqwe\neeee" fastgpt_oneapi | ] fastgpt_oneapi | } fastgpt_oneapi | [GIN] 2024/04/12 - 17:45:41 | 2024041217454176454496988398752 | 500 | 1.271732ms | 172.24.0.6 | POST /v1/embeddings fastgpt | Embedding Error eK [Error]: 500 Panic detected, error: interface conversion: interface {} is []interface {}, not string. Please submit an issue with the related log here: https://github.com/songquanpeng/one-api fastgpt | at eL.generate (/app/projects/app/.next/server/chunks/80555.js:21:70210) fastgpt | at af.makeStatusError (/app/projects/app/.next/server/chunks/80555.js:21:81687) fastgpt | at af.makeRequest (/app/projects/app/.next/server/chunks/80555.js:21:82610) fastgpt | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) fastgpt | at async c (/app/projects/app/.next/server/chunks/50444.js:30:1260) fastgpt | at async w (/app/projects/app/.next/server/chunks/50444.js:22:399) fastgpt | at async Promise.all (index 0) fastgpt | at async u (/app/projects/app/.next/server/chunks/16378.js:54:26810) fastgpt | at async /app/projects/app/.next/server/pages/api/core/dataset/data/insertData.js:1:3043 { fastgpt | status: 500, fastgpt | headers: { fastgpt | 'content-length': '225', fastgpt | 'content-type': 'application/json; charset=utf-8', fastgpt | date: 'Fri, 12 Apr 2024 09:45:41 GMT', fastgpt | 'x-oneapi-request-id': '2024041217454176454496988398752' fastgpt | }, fastgpt | error: { fastgpt | message: 'Panic detected, error: interface conversion: interface {} is []interface {}, not string. Please submit an issue with the related log here: https://github.com/songquanpeng/one-api', fastgpt | type: 'one_api_panic' fastgpt | }, fastgpt | code: undefined, fastgpt | param: undefined, fastgpt | type: 'one_api_panic' fastgpt | }

复现步骤

预期结果

相关截图

image

c121914yu commented 6 months ago

看着是 api 接口错