Closed A6y55 closed 8 months ago
Let me check on this one. It seems that PentestGPT just cannot get connection to the API; could you check if you set the correct baseurl when running the tool? Meanwhile I'll do some local testing and get back to this.
Hi! I got the same error, is there any solution?
same error
Hi! I got the same error, is there any solution?
If you use a third-party APIs, you need to modify two files:
One is utils/APIs/chatgpt_api.py,change
openai.api_base = config_class.api_base
to
openai.api_base = "your_api_base/v1"
The other is /config/chat_config.py,change
api_base: str = os.getenv("OPENAI_BASEURL", "https://api.openai.com/v1")
to
api_base: str = "your_api_base/v1"
This can solve my problem.
same error
Hello, try the above solution.
I use one-api(https://github.com/songquanpeng/one-api) to manage my openai api. Then I run pentestgpt as follow:
seems that conversation_id is None, how can I fix that ?
Error: `Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/tenacity/init.py", line 382, in call result = fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/home/a6y55/PentestGPT/pentestgpt/utils/llm_api.py", line 253, in send_message conversation = self.conversation_dict[conversation_id]