Skip to content

Conversation

@RiccardoRobb
Copy link
Contributor

Python version = 3.10.12

  1. Cloned repo
  2. Installed package using pip3 install -e .
  3. Setup env variable for OPENAI_KEY
  4. pentestgpt-connection

First error raised: pentestgpt/utils/APIs/chatgpt_api.py line 96 (More info in commit description)
Second error raised: pentestgpt/utils/llm_api.py line 99 (More info in commit description)

The APIKEY used is activated and properly configured.
After the fix I can use the tool correctly.

Error raised = `AttributeError: 'ChatGPTAPI' object has no attribute 'config'`

When calling `pentestgpt-connection`
Error raised = `AttributeError: 'ChatGPTAPI' object has no attribute 'token_compression'. Did you mean: '_token_compression'?`

When calling `pentestgpt-connection`
@GreyDGL
Copy link
Owner

GreyDGL commented Oct 6, 2023

Thanks for the contribution! Merge to main:)

@GreyDGL GreyDGL merged commit 4286b50 into GreyDGL:main Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants