Pythagora-io / gpt-pilot

The first real AI developer
Other
29.94k stars 2.97k forks source link

[Howto]: Change OpenAI API key when using docker #787

Open JavierMariosa opened 6 months ago

JavierMariosa commented 6 months ago

Version

VisualStudio Code extension

Operating System

Windows 11

Your question

Hello! I'm running gpt-pilot in a docker and calling it from the vscode extension. I used all the gpt-pilot tokens for gpt4 but I own an OpenAI key so I'd like to use it. I tried putting it inside the .env that comes with the installation (the folder where I cloned the repo) and even tried to ssh into the docker and edited the .env there... to no avail... Where should I put that API key so it starts recognizing I'm using that service? Thanks!

senko commented 6 months ago

How are you calling the dockerized gpt-pilot from the vscode extension? Pythagora extension currently doesn't support remote services (eg. ssh to docker or remote machine) and will always try to run gpt-pilot locally.