Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pentestgpt-connection exits with exit code 0 on success #257

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

laysakura
Copy link

Problem

% export OPENAI_API_KEY='XXXXXXXX'

% ~/.pyenv/versions/3.10.16/bin/pentestgpt-connection
Your CHATGPT_COOKIE is not set. Please set it in the environment variable.
You're testing the connection for PentestGPT v"0.14.0"
#### Test connection for OpenAI api (GPT-3.5)
New conversation.XXXXXXX is created.

1. You're connected with OpenAI API. You have GPT-3.5 access. To start PentestGPT, please use <pentestgpt --reasoning_model=gpt-3.5-turbo-16k>
#### Test connection for OpenAI api (GPT-4)
New conversation.XXXXXXX is created.

1. You're connected with OpenAI API. You have GPT-4(o) access. To start PentestGPT, please use <pentestgpt --reasoning_model=gpt-4o>

% echo $?
1  # <= should be 0

Solution

See the small diff 😄

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.

1 participant