Giter Site home page Giter Site logo

Comments (5)

slot181 avatar slot181 commented on August 29, 2024

我发现用 claude 也有这个问题。

fastgpt | message: '400 messages: roles must alternate between "user" and "assistant", but found multiple "user" roles in a row (request id: 2024062912300280418215164311064)',
fastgpt | stack: 'Error: 400 messages: roles must alternate between "user" and "assistant", but found multiple "user" roles in a row (request id: 2024062912300280418215164311064)\n' +
fastgpt | ' at eL.generate (/app/projects/app/.next/server/chunks/76750.js:15:67594)\n' +
fastgpt | ' at av.makeStatusError (/app/projects/app/.next/server/chunks/76750.js:15:79337)\n' +
fastgpt | ' at av.makeRequest (/app/projects/app/.next/server/chunks/76750.js:15:80260)\n' +
fastgpt | ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
fastgpt | ' at async Object.P [as chatNode] (/app/projects/app/.next/server/chunks/75612.js:312:686)\n' +
fastgpt | ' at async k (/app/projects/app/.next/server/chunks/75612.js:313:2241)\n' +
fastgpt | ' at async Promise.all (index 5)\n' +
fastgpt | ' at async E (/app/projects/app/.next/server/chunks/75612.js:313:2782)\n' +
fastgpt | ' at async C (/app/projects/app/.next/server/pages/api/v1/chat/completions.js:63:11920)\n' +
fastgpt | ' at async /app/projects/app/.next/server/pages/api/core/app/list.js:1:5593'
fastgpt | }
fastgpt | [Info] 2024-06-29 10:30:03 Request finish /api/v1/chat/completions, time: 1195ms

from fastgpt.

c121914yu avatar c121914yu commented on August 29, 2024

我发现用 claude 也有这个问题。

fastgpt | message: '400 messages: roles must alternate between "user" and "assistant", but found multiple "user" roles in a row (request id: 2024062912300280418215164311064)',
fastgpt | stack: 'Error: 400 messages: roles must alternate between "user" and "assistant", but found multiple "user" roles in a row (request id: 2024062912300280418215164311064)\n' +
fastgpt | ' at eL.generate (/app/projects/app/.next/server/chunks/76750.js:15:67594)\n' +
fastgpt | ' at av.makeStatusError (/app/projects/app/.next/server/chunks/76750.js:15:79337)\n' +
fastgpt | ' at av.makeRequest (/app/projects/app/.next/server/chunks/76750.js:15:80260)\n' +
fastgpt | ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
fastgpt | ' at async Object.P [as chatNode] (/app/projects/app/.next/server/chunks/75612.js:312:686)\n' +
fastgpt | ' at async k (/app/projects/app/.next/server/chunks/75612.js:313:2241)\n' +
fastgpt | ' at async Promise.all (index 5)\n' +
fastgpt | ' at async E (/app/projects/app/.next/server/chunks/75612.js:313:2782)\n' +
fastgpt | ' at async C (/app/projects/app/.next/server/pages/api/v1/chat/completions.js:63:11920)\n' +
fastgpt | ' at async /app/projects/app/.next/server/pages/api/core/app/list.js:1:5593'
fastgpt | }
fastgpt | [Info] 2024-06-29 10:30:03 Request finish /api/v1/chat/completions, time: 1195ms

claude 没支持函数调用

from fastgpt.

JinCheng666 avatar JinCheng666 commented on August 29, 2024

更新xinference到0.12.3,仍然出现这个问题

from fastgpt.

romejiang avatar romejiang commented on August 29, 2024

更新xinference到0.12.3,仍然出现这个问题
将这两个参数改成false
config.json

  "toolChoice": false,
  "functionCall": false,

from fastgpt.

hellolixy avatar hellolixy commented on August 29, 2024

解决了吗?我在xinference上部署了qw2-7b模型, 也是报这个错,但是dify上使用是正常的:
message: '400 status code (no body)',
stack: 'Error: 400 status code (no body)\n' +
' at APIError.generate (webpack-internal:///(api)/../../node_modules/.pnpm/[email protected][email protected]/node_modul
ror.mjs:57:20)\n' +
' at OpenAI.makeStatusError (webpack-internal:///(api)/../../node_modules/.pnpm/[email protected][email protected]/node_
ai/core.mjs:292:65)\n' +
' at OpenAI.makeRequest (webpack-internal:///(api)/../../node_modules/.pnpm/[email protected][email protected]/node_modu
ore.mjs:335:30)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async runToolWithToolChoice (webpack-internal:///(api)/../../packages/service/core/workflow/dispatch/agent/run
ice.ts:95:24)\n' +

from fastgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.