Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cokeBeer committed Apr 11, 2023
1 parent c34fcf9 commit 52fdb68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReconAIzer v0.3.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def send_request_to_openai(self, text, prompt_type):
OPENAI_API_URL = "https://api.openai.com/v1/chat/completions"
# Use proxy if SOCKS_PROXY_URL is set, e.g. 127.0.0.1
SOCKS_PROXY_URL = ""
SOCKS_PROXY_PROT = 7890
SOCKS_PROXY_PORT = 7890

headers = {
"Content-Type": "application/json",
Expand Down Expand Up @@ -145,7 +145,7 @@ def send_request_to_openai(self, text, prompt_type):
retry_delay = 2

for attempt in range(max_retries):
connection = self.send_post_request(OPENAI_API_URL, headers, json.dumps(data), proxy_url = SOCKS_PROXY_URL, proxy_port = SOCKS_PROXY_PROT)
connection = self.send_post_request(OPENAI_API_URL, headers, json.dumps(data), proxy_url = SOCKS_PROXY_URL, proxy_port = SOCKS_PROXY_PORT)
response_code = connection.getResponseCode()

if response_code == 429:
Expand Down

0 comments on commit 52fdb68

Please sign in to comment.