Comments (2)
I raised a new issue by mistake, moving text here and closing the issue. I have the same problem and I have plus. Here is my description:
Trying to test the new changes to the tool, I run into the following error as soon as I tried. As you can see test_connection seems to work:
python3 test_connection.py
#### Test connection for chatgpt cookie
1. You're connected with ChatGPT Plus cookie.
To start PentestGPT, please use <python3 main.py --reasoning_model=gpt-4 --useAPI=False>
#### Test connection for OpenAI api (GPT-4)
The OpenAI API key is not properly configured. Please follow README to update OpenAI API key in config/chatgpt_config.py
#### Test connection for OpenAI api (GPT-3.5)
The OpenAI API key is not properly configured. Please follow README to update OpenAI API key in config/chatgpt_config.py
but main doesn't:
python3 main.py --reasoning_model=gpt-4 --useAPI=False
- ChatGPT Sessions Initialized.
Please describe the penetration testing task in one line, including the target IP, task type, e
> test localhost 127.0.0.1
Traceback (most recent call last):
File "/media/psf/Documents/GitHub/PentestGPT/main.py", line 25, in <module>
pentestGPTHandler.main()
File "/media/psf/Documents/GitHub/PentestGPT/utils/pentest_gpt.py", line 466, in main
_response = self.reasoning_handler(prefixed_init_description)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/psf/Documents/GitHub/PentestGPT/utils/pentest_gpt.py", line 128, in reasoning_handler
response = self.chatGPT4Agent.send_message(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/psf/Documents/GitHub/PentestGPT/utils/chatgpt_api.py", line 92, in send_message
conversation = self.conversation_dict[conversation_id]
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: None
from pentestgpt.
This problem should be fixed. You may refer to the latest documentation. Note that there is a change in the tool usage. Now --useAPI
does not require input params. If you use OpenAI API, you can do it with python3 main.py --reasoning_model=gpt-4 --useAPI
. Otherwise, just use python3 main.py --reasoning_model=gpt-4
.
from pentestgpt.
Related Issues (20)
- Solved
- How to debug project step by step๏ผ HOT 3
- RetryError HOT 3
- dataset HOT 1
- can not use LLM
- PentestGPT will not load when using GPT4All option HOT 3
- Cannot close PentestGPT with "/bye" when opening normally with "pentestgpt" HOT 5
- What is the CHATGPT_COOKIE cookie that must be set for pentestgpt-connection to work? HOT 1
- vector database HOT 1
- no gpt4all.py HOT 1
- use <SHIFT + right arrow> not working HOT 2
- [Feature] Decoupling next commands with the tool inputs.
- [Feature] Update to GPT4o and Integrate the Image Module HOT 1
- Can you add Groq and Together API like you did with gpt4o?
- SyntaxError: keyword argument repeated: api_key
- Completed tasks in PTT not marked as completed
- shift + right-arrow Exception: RetryError HOT 1
- adding gpt4o to reasoning.. HOT 2
- Google AI Studio Model Free HOT 1
- Question about Evaluation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pentestgpt.