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

add missing details and routes #1

Merged
merged 1 commit into from
Feb 28, 2025
Merged

add missing details and routes #1

merged 1 commit into from
Feb 28, 2025

Conversation

timofeysie
Copy link
Collaborator

Bolt.new has a daily token limit which is a hard cutoff during code generation.
This meant that the context object created were not used, and routes were not defined.
In this PR I have added the providers and links to the detail pages.
The src/pages/ArtworkDetailPage.tsx was cut-off at the bottom as the limit was reached.
Still, good to see Stackblitz pivoting in a really important direction.

Code generation like this is the future of our jobs.

Copy link

stackblitz bot commented Feb 28, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@quantimothy
Copy link
Owner

Looks good. I wonder if this is what the AI would have done? How will we handle auth given the size of this app already?
There are some suggestions on these links to consider:
https://support.bolt.new/faqs/account-and-subscription/tokens#why-are-tokens-consumed-faster-the-longer-i-use-bolt
Improvement: Increasing Token Usage Efficiency (In Progress) #678
.
Chat Error: prompt is too long: 200000 tokens > 199999 maximum #1322

  • Clear the chat history to free up some space in the context window
    This will only help if the chat history is filling a major portion of the context window (IE it is very long). As of 11/19/24, the way to clear chat history is to open your project in StackBlitz, Fork it, and re-open in Bolt.

  • Reduce the Size of your project
    This could be accomplished by breaking a large app into smaller chunks, and glueing it all back together outside of Bolt later. For example, separate backend and frontend into separate projects is a common developer pattern. This could be challenging for less experienced developers.

  • ADVANCED USERS ONLY: .bolt/ignore
    In every bolt project, if you open it in StackBlitz you can edit a file called .bolt/ignore, and in this file you can list out any folders or folders that should be excluded from the AI context window. For example, here is our vite react starter’s ignore files: https://stackblitz.com/edit/vite-shadcn?file=.bolt%2Fignore. Any files listed there will be completely invisible to the AI, and will clear up space in the context window. You’ll need to edit the .bolt/ignore file in StackBlitz and then reopen the project in bolt for the changes to take effect. Please note: hiding files from the AI can have unintended consequences as it is no longer aware of your entire project. This approach is very powerful, but is only recommended for advanced users who can make informed decisions about what can safely be excluded, and understand/resolve issues that may arise from this approach.

I suggest the second option. Create a new header only app that handles auth and db integration. It could get messy!

@quantimothy quantimothy merged commit 71dcef9 into main Feb 28, 2025
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

Successfully merging this pull request may close these issues.

2 participants