-
Notifications
You must be signed in to change notification settings - Fork 293
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
File created as folder, prevents AI from creating rest of project #10
Comments
It seems you're facing two distinct issues when running the AI-powered project generation process: 1. File creation error:The AI attempted to create a file ( 2. OpenAI context length exceeded:This error happens when too much context is passed in a single request to OpenAI's API, exceeding the allowed token limit. The model can only handle a certain number of tokens (which includes your message and its own response), and if that limit is surpassed, it returns the error you're seeing. Potential Solutions:1. Fixing the file creation issue:
2. Handling OpenAI token limit issue:
3. Retry the process:
4. Future prevention:
Example steps to fix:
By breaking down the process into smaller steps and manually intervening when errors occur, you should be able to resolve these issues and proceed with your project generation. |
I'm running into |
System: WINDOWS 11 / VS-Code / PowerShell Terminal
After the /planning state, I asked the AI to /create Generate the project as planned. It then asked me:
Do you want to execute these creation steps? (yes/no): yes
It then proceeded to create a bunch of files and folders until it stopped with an error and asked me if I wanted to try again. Said yes, but same error.
I eventually tracked the error to a file project/frontend/App.jsx that had been created as a folder, instead of a file and was apparently preventing the file creation process from completing.
NOTE: I also created some files by hand, cutting and pasting from the terminal. Attempting to create the files from the AI stopped with the error:
ERROR:root:An unexpected error occurred during creation: [WinError 183] Cannot create a file when that file already exists: 'Project/backend/.env'
At this point, asking the AI to try again returned an Open AI error and crashed:
Error while communicating with OpenAI: Error code: 400 - {'error': {'message': "This model's maximum context length has been exceeded. Please reduce the length of the messages.", 'type': 'invalid_request_error', 'param': 'messages', 'code': 'context_length_exceeded'}}
The text was updated successfully, but these errors were encountered: