Open kcramp858 opened 1 year ago
yeah honeslty smol debugger is quite underdeveloped now, i think i know how to solve this but i was leaving it to another day. i might actually split it out to a separate project since it is so useful to run on existing codebases. (aka i'd love to package it up into a binary you can download or brew install
)
basically i plan to chunk the code and put it in chroma, and then bundle it up in to a standalone binary #13
I created an app with:
modal run main.py --prompt "A minimal React app that just displays the text 'Hello, World' in the browser"
It had a small error preventing it from running, so I put that into the debugger:
modal run debugger.py --prompt "Module not found: Error: Can't resolve './App' in '/Users/localjo/smol-dev/generated/src'"
And I got "InvalidRequestError: This model's maximum context length is 4097 tokens. However, your messages resulted in 2188582 tokens. Please reduce the length of the messages." 🤯
Is it trying to put all of the node_modules
dependencies in?
is this the following error?
InvalidRequestError: This model's maximum context length is 4097 tokens. However, you requested 4151 tokens (151 in the messages, 4000 in the completion). Please reduce the length of the messages or completion.
yeah sorry guys this is a bad pain point.
would take a PR to:
should the program divide the prompt in chunks? just like auto-gpt?
@BlackNipples i'm tackling the problem a different way - more details in the body of this post https://www.latent.space/p/function-agents#details
While following the workflow shown in the YouTube video, I run into this error.
I had run a prompt and gotten an error. I tried running debugger on the traceback and it errors out.
Command is here:
modal run debugger.py --prompt "codespace ➜ /workspaces/developer (main) $ /home/codespace/.python/current/bin/python3 /workspaces/developer/generated/main.py Enter the path to the CSV file: data.csv Traceback (most recent call last): File "/workspaces/developer/generated/main.py", line 16, in <module> main() File "/workspaces/developer/generated/main.py", line 10, in main column_names, data_rows = csv_parser.parse_csv(csv_file_path) TypeError: parse_csv() missing 1 required positional argument: 'column_indices'"
Error is here:
Have GPT-4 API access, running in a DevContainer in Visual Studio Code on Windows 10.
I am not sure how to see exactly what it is outputting to hit this 7575 tokens -- are there any debug steps I can take?
My debug prompt is quite short, it is a short traceback.