-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Using Pythagora with your own OpenAI key
Senko Rašić edited this page Mar 5, 2024
·
10 revisions
If you have your own OpenAI API key, you can easily use it with Pythagora VisualStudio Code extension.
NOTE: Your OpenAI API key must have access to GPT4 model, which means you need to make at least $5 payment to OpenAI to activate it. This is separate from your ChatGPT Plus subscription (if you have one). Read more here: https://bit.ly/openai-how-can-i-access-gpt-4
Here's how you can use Pythagora VisualStudio Code extension with your own OpenAI API key:
- Close VisualStudio Code
- Edit
.env
file in your GPT Pilot installation folder to setOPENAI_KEY
andOPENAI_ENDPOINT
to correct values - Open VisualStudio Code, start Pythagora, go to settings and you should see the message You're using your own OpenAI key
- That's it!
If you're currently using your own keys and would like to subscribe to Pythagora and use its managed keys instead, just do the reverse:
- Close VisualStudio Code
- Edit
.env
file in your GPT Pilot installation folder and comment outOPENAI_KEY
andOPENAI_ENDPOINT
settings - Open VisualStudio Code, start Pythagora, go to settings and you should see the message You're on free trial or Your free trial has expired, and a Subscribe to Pythagora button
- Clicking the button will send you an email with available plans. Once you subscribe to any of them, the settings panel in Pythagora extension will update to You're using Pythagora Pro or similar message (depending on the exact plan you choose)