getting error message":"invalid request: cannot specify both message and tool_results in multistep mode" #1402
Unanswered
starlord263
asked this question in
Q&A
Replies: 2 comments
-
Hi! Thanks for reporting, this is actually indeed an issue with Cohere endpoint, will open an issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi i am using huggingface chat-ui locally and using cohere command r+ but whenever i try to use tools i get following error
`
Error: {"message":"invalid request: cannot specify both message and tool_results in multistep mode"}
at eval (C:/Users/achar/Documents/aditya/chat-ui/src/lib/server/endpoints/cohere/endpointCohere.ts:93:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (C:/Users/achar/Documents/aditya/chat-ui/src/lib/server/endpoints/cohere/endpointCohere.ts:70:18)
at async Module.generate (C:/Users/achar/Documents/aditya/chat-ui/src/lib/server/textGeneration/generate.ts:8:20)
at async textGenerationWithoutTitle (C:/Users/achar/Documents/aditya/chat-ui/src/lib/server/textGeneration/index.ts:54:3)
at async Module.mergeAsyncGenerators (C:/Users/achar/Documents/aditya/chat-ui/src/lib/utils/mergeAsyncGenerators.ts:13:34)
at async Module.textGeneration (C:/Users/achar/Documents/aditya/chat-ui/src/lib/server/textGeneration/index.ts:24:3)
at async Object.start (C:/Users/achar/Documents/aditya/chat-ui/src/routes/conversation/[id]/+server.ts:329:26) {
[cause]: BadRequestError: BadRequestError
Status code: 400
Body: {}
at CohereClient. (C:\Users\achar\Documents\aditya\chat-ui\node_modules\cohere-ai\Client.js:112:31)
at Generator.next ()
at fulfilled (C:\Users\achar\Documents\aditya\chat-ui\node_modules\cohere-ai\Client.js:31:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
statusCode: 400,
body: ReadableStream { locked: false, state: 'closed', supportsBYOB: false }
`
Beta Was this translation helpful? Give feedback.
All reactions