luijait / DarkGPT

DarkGPT is an OSINT assistant based on GPT-4-200K (recommended use) designed to perform queries on leaked databases, thus providing an artificial intelligence assistant that can be useful in your traditional OSINT processes.
1.86k stars 230 forks source link

HELP WITH THIS ISSUE #20

Open banerlord opened 1 month ago

banerlord commented 1 month ago

when i start the main.py thats say my api keys is wrong but is the good one, what can i do ?

Traceback (most recent call last): File "C:\Windows\System32\DarkGPT\main.py", line 32, in main() File "C:\Windows\System32\DarkGPT\main.py", line 24, in main darkgpt = DarkGPT() ^^^^^^^^^ File "C:\Windows\System32\DarkGPT\DarkAgent.py", line 37, in init self.openai_client = Client(api_key=os.getenv("OPENAI_API_KEY")) # Configuración del cliente OpenAI con la clave API. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\rez\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\openai_client.py", line 98, in init raise OpenAIError( openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

jumbophp commented 5 days ago

you didn't set the api key