stackblitz / webcontainer-core

Dev environments. In your web app.
https://webcontainers.io
MIT License
3.93k stars 171 forks source link

prompt is too long: 201339 tokens > 200000 maximum #1615

Open Zandino opened 4 days ago

Zandino commented 4 days ago

Describe the bug

I enter an order once in 4 it tells me that I exceed the number of tokens per promte so which I put 5 myself

Link to the blitz that caused the error

https://stackblitz.com/edit/sb1-6ivmeq?file=index.html

Steps to reproduce

Enter a request in bolt (come randomly)

Expected behavior

have an answer because you have to refresh for it to work again

Parity with Local

Screenshots

image_2024-11-18_132408036

Platform

Browser name  = Chrome
Full version  = 128.0.0.0
Major version = 128
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 OPR/114.0.0.0
performance.memory = {
  "totalJSHeapSize": 108540242,
  "usedJSHeapSize": 92448566,
  "jsHeapSizeLimit": 4294705152
}
Hash = d3acb9e1

Additional context

No response