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

Cannot read properties of undefined (reading 'toolCalls') #860

Open
500Kilogram opened this issue Dec 21, 2024 · 12 comments
Open

Cannot read properties of undefined (reading 'toolCalls') #860

500Kilogram opened this issue Dec 21, 2024 · 12 comments

Comments

@500Kilogram
Copy link

Describe the bug

I have installed qwen2.5-coder. I launched bolt in pinokio. And I'm making a mistake.

Link to the Bolt URL that caused the error

/

Steps to reproduce

bolt launch in pinokio
The choice of ollama - qwen2.5-coder:32b
promt

Expected behavior

start

Screen Recording / Screenshot

Снимок

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Provider Used

ollama

Model Used

qwen2.5-coder:32b

Additional context

image
this happens when the promt improves.

@nzgl-g
Copy link

nzgl-g commented Dec 21, 2024

I have this issue too, tried the docker installation too , hope they fix it

@b22-dev
Copy link

b22-dev commented Dec 21, 2024

same issue here

@thecodacus
Copy link
Collaborator

can you try other provider?

@ZakhilAmin
Copy link

Same issue here, i have tried using Node.js on local computer

@kayed85
Copy link

kayed85 commented Dec 21, 2024

Same issue here, Macbook Pro M1 Pro , macOS Sequoia 15.2
ddddd

@Ibaad-Ur-Rehman
Copy link

same issue with me

@b22-dev
Copy link

b22-dev commented Dec 21, 2024

The same issue even if I used other providers.

I tested it using this providers:
TogetherAI
Groq
xAi

Anyway, it worked with local OLlama (Llama 3.1 (8B)).

Device:
MacBook M1 Pro.

EDIT: I tried to track NETWORK browser traffic to identify the issue. Anyway, The response of the request is EMPTY, and for the payload I can see that the api key is registered and everything looks fine but the request being responded with error.

@thecodacus
Copy link
Collaborator

thecodacus commented Dec 21, 2024

happens in two scenario, your models were not selected correctly and its using default model instead of selected model
or you have set the api key wrong

can you set the api keys on the UI and just switch the model dropdown to some other model and then back to the one you want to use, "model" not the "provider"

also can you specify which version and commit hash you are using ?

@thecodacus
Copy link
Collaborator

EDIT: I tried to track NETWORK browser traffic to identify the issue. Anyway, The response of the request is EMPTY, and for the payload I can see that the api key is registered and everything looks fine but the request being responded with error.

were you able to check the selected model? thats in the messages and prefixed in the content of the user message

@beenycool
Copy link

same happens to me it just stopped working after i finally got it running. I got this in the console:TypeError: Cannot read properties of undefined (reading 'toolCalls')
at Object.flush (file:///C:/Users//Documents/soody/website/bolt.diy-0.0.3/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ai/core/generate-text/stream-text.ts:569:33)
at ensureIsPromise (node:internal/webstreams/util:192:19)
at transformStreamDefaultSinkCloseAlgorithm (node:internal/webstreams/transformstream:569:5)
at Object.close (node:internal/webstreams/transformstream:366:14)
at ensureIsPromise (node:internal/webstreams/util:192:19)
at writableStreamDefaultControllerProcessClose (node:internal/webstreams/writablestream:1142:28)
at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1222:5)
at writableStreamDefaultControllerClose (node:internal/webstreams/writablestream:1189:3)
at writableStreamClose (node:internal/webstreams/writablestream:699:3)
at writableStreamDefaultWriterClose (node:internal/webstreams/writablestream:1071:10)
at writableStreamDefaultWriterCloseWithErrorPropagation (node:internal/webstreams/writablestream:1063:10)
at node:internal/webstreams/readablestream:1439:15
at complete (node:internal/webstreams/readablestream:1312:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
21:38:24 [vite] Internal server error: Cannot read properties of undefined (reading 'toolCalls')
at Object.flush (file:///C:/Users/
/Documents/soody/website/bolt.diy-0.0.3/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ai/core/generate-text/stream-text.ts:569:33)
at ensureIsPromise (node:internal/webstreams/util:192:19)
at transformStreamDefaultSinkCloseAlgorithm (node:internal/webstreams/transformstream:569:5)
at Object.close (node:internal/webstreams/transformstream:366:14)
at ensureIsPromise (node:internal/webstreams/util:192:19)
at writableStreamDefaultControllerProcessClose (node:internal/webstreams/writablestream:1142:28)
at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1222:5)
at writableStreamDefaultControllerClose (node:internal/webstreams/writablestream:1189:3)
at writableStreamClose (node:internal/webstreams/writablestream:699:3)
at writableStreamDefaultWriterClose (node:internal/webstreams/writablestream:1071:10)
at writableStreamDefaultWriterCloseWithErrorPropagation (node:internal/webstreams/writablestream:1063:10)
at node:internal/webstreams/readablestream:1439:15
at complete (node:internal/webstreams/readablestream:1312:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5) (x4)

@vrcnx
Copy link

vrcnx commented Dec 22, 2024

Same issue here, was working fine then I attempted to upload a .py file and then that error occurred. Using Claude 3.5 sonnet.

I also have an open ai api key i tried using, 4o mini worked, but 4o didn't work.

@b22-dev
Copy link

b22-dev commented Dec 22, 2024

EDIT: I tried to track NETWORK browser traffic to identify the issue. Anyway, The response of the request is EMPTY, and for the payload I can see that the api key is registered and everything looks fine but the request being responded with error.

were you able to check the selected model? thats in the messages and prefixed in the content of the user message

Yes, I'm able to check it.

[Model: grok-2-1212]\n\n[Provider: xAI]\n\n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants