stackblitz / bolt.new

Prompt, run, edit, and deploy full-stack web applications
https://bolt.new
MIT License
9.19k stars 3.68k forks source link

Use of tokens #3327

Open erick-vallenas opened 4 days ago

erick-vallenas commented 4 days ago

Describe the bug

Each promt is using almost 100,000 tokens, most of the uses are to correct the same errors it generates, of the 30 promtps at least 20 are error corrections that appear after each prompt

Link to the Bolt URL that caused the error

https://bolt.new/~/vitejs-vite-m5h2zn

Steps to reproduce

  1. I write an order
  2. You run it but errors appear
  3. I press fix errors

Expected behavior

If the errors are generated by the previous promt they should not consume so many tokens

  1. I write an order
  2. You run it but errors appear
  3. I press fix errors

Screen Recording / Screenshot

No response

Platform

Browser name = Chrome
Full version = 131.0.0.0
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 92970557,
  "usedJSHeapSize": 89389725,
  "jsHeapSizeLimit": 4294705152
}
Username = erick-vallenas
Chat ID = 47009c38a483

Additional context

Error:

network error
osheenchavhan commented 3 days ago

Same issue. Almost 100k tokens being used just for small changes in file. I have also enables Diffs feature which was launched yesterday.

yassinehamouten commented 3 days ago

Same for me, it's like 200,000 tokens per change... And I'm not talking about wrapping up on errors... and bugs... I won't pay anymore