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

getting this msg no matter how I edit the latest prompt: prompt is too long: 205272 tokens > 199999 maximum #306

Closed
moses5407 opened this issue Oct 9, 2024 · 5 comments

Comments

@moses5407
Copy link

Describe the bug

I wonder if it relates to the length of the chat vs the length of the latest prompt?

Also, I don't seem to have gotten the additional tokens.

Link to the Bolt URL that caused the error

https://bolt.new/~/sb1-hdgrt4

Steps to reproduce

enter even a single word prompt

Expected behavior

I was expecting to continue with refining this project

Screen Recording / Screenshot

image

Platform

-Chromebook running Chrome browser Version 126.0.6478.253 (Official Build) (64-bit)

Additional context

No response

@superresistant
Copy link

wtf are those backups? just download your code for versioning. if you put 10 versions of your app in the app code, that probably explain why it run out of tokens

@kc0tlh
Copy link
Collaborator

kc0tlh commented Oct 22, 2024

The issue here is that your project is to large for the AI. You need to keep the total project size smaller, or it will overwhelm the AI, and throw this error.

More general usage tips are available in #678

@kc0tlh kc0tlh closed this as completed Oct 22, 2024
@lcgarza10
Copy link

Im still having this error, but I doubt the project is too large being the issue since even when i said "Hi" it gives me this prompt
also how can i make it smaller without AI and without removing a page that may brake

@kc0tlh
Copy link
Collaborator

kc0tlh commented Oct 31, 2024

It is likely because the file system of the project is too large. More to come on this soon, but as a start, try to reduce the project size or break down the app into smaller components. This may be the best approach.

If you're able to replicate this on a small project with very few files in the file system, please take a video with Loom and share it here so that we can troubleshoot.

@kc0tlh
Copy link
Collaborator

kc0tlh commented Nov 3, 2024

More info now available in #1322 where we are tracking this issue

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

4 participants