-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Frequently Asked Questions
These are some of the most asked questions about GPT Pilot. If you don't find an answer here, try asking in our Discord community. Also check out our video tutorials.
While you can configure GPT Pilot to use other models, including local LLMs, it probably won't work well. This is because GPT Pilot prompts are optimized for GPT4, and can easily confuse other models (including GPT3.5). If you use other model and GPT Pilot seems to get stuck, this is the probable reason.
If you're willing to experiment, you can modify the LLM prompts in your GPT Pilot installation and see how far you can get with other models. Several people in our Discord community are interested in this so if you're feeling adventurous, join our Discord to learn and share your hacks.
##The VSCode extension asks me to log in? What am I logging into? Do I need to use my OpenAI email and password? This is separate from your OpenAI email/password - don't reuse them (you can use the same email address, but the accounts are separate, and you should never reuse passwords anyways). We're building a cloud version of GPT Pilot so the VSCode extension already signs up to our system. We also use this to ask you for feedback (how was GPT Pilot for you).
##I entered my OpenAI key but I get "you don't have access to gpt-4" or "openai model not found" error
Please note that ChatGPT Plus subscription and OpenAI API subscriptions are separate. To use GPT Pilot with GPT4, you need to have a paid subscription to OpenAI API. To verify this, you can go to OpenAI API Playground and check if you can use gpt-4-1106-preview
model.
If you can use gpt4 from the playground, double-check that the API key you pasted is correct.
##When I start GPT Pilot, it asks me some questions and then offers advice how to start coding, but doesn't actually do anything If you're using an AI model other than GPT4, you've run into our compatibility issue (see Do you support AI models other than OpenAI GPT4? question).
##I start GPT Pilot and get an error like TypeError: 'type' object is not subscriptable
Check that you're running Python 3.9 or later. If you have multiple Python installations on your system, GPT Pilot might have picked up the incorrect version. You can fix this by manually setting up Python virtual environment in gpt-pilot/pilot-env
directory using your preferred version of Python:
cd '/install/path/of/gpt-pilot/`
rm -rf pilot-env
/path/to/correct/python3 -m venv pilot-env
./pilot-env/bin/python -m pip -r requirements.txt
(on Windows it's the same, except it's easier to remove the pilot-env folder in File Explorer, you need to use '' instead of '/' for paths, and you need to run 'pilot-env\Scripts\python.exe` instead of './pilot-env/bin/python').
##I get the following error in the VSCode extension: "No module named dotenv" The Python virtual environment, which should have been automatically set up by VSCode installation, wasn't complete. You can do the same workaround as in the previous answer.
##Can I use this for an existing project? Not yet. This is on our todo list, but currently you need to start the project with GPT Pilot. After finishing project with GPT Pilot, you are able to add additional features/changes to it, but at this moment you can't just open an existing project you built or downloaded from elsewhere and point GPT Pilot to it.
##GPT Pilot is very slow and eats tokens like there's no tomorrow, why? GPT Pilot currently gets slower the more files you have in your project. This is especially noticable if you're using a framework that creates a bunch of files when initializing the project (eg. react, laravel, django,...).
##I got TokenLimitError
, how to work around it?
GPT Pilot sends project files to the LLM. If you have large text files in your project, GPT Pilot might pick them up and trigger this error. TO avoid this, you can list those files (or folders) in IGNORE_PATHS
settings in your GPT Pilot .env
settings file. Here's a video tutorial how to ignore custom files in GPT Pilot. Note that you can also ignore files by extension, eg by adding *.log
. You can see the default ignores in pilot/const/common.py
file in GPT Pilot source code.
== This rocks! Can I buy you coffee? == Thanks! The best way to help right now is to tell your friends about GPT Pilot, help spread the word about us, and be active in our Discord community!