PentestGPT icon indicating copy to clipboard operation
PentestGPT copied to clipboard

Unable to connect to OpenAI API

Open Mat4Shell opened this issue 11 months ago • 3 comments

Describe the bug Hey everyone, I just try to install PentestGPT on my debian vm, adding a payment source to OpenAI API, add 5$ credit on my account, create my API Key, export it into my vm, export the API base URL, clone the repo, create a venv and install the requirements, and tghen execute pentestgpt-connection but I still have the message that my OpenAI API Key is not properly configured. I'm a beginner on OpenAI so I don't know if I do something wrong or not :(

I try a request to https://api.openai.com/v1/models with my key and everything seems to be working well

To Reproduce Steps to reproduce the behavior:

  1. Launch pentestgpt-connection

Screenshots image image image image image

Version I use the latest version of the repo

Thank you a lot in advance for your help !

Mat4Shell avatar Jan 05 '25 17:01 Mat4Shell

I'm having the same problem as you, can you solve it now?

Maycra111 avatar Feb 20 '25 14:02 Maycra111