You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi my name is Kepar,
recently i found a chatgpt clone (3.5 turbo) model for free
i leave the code here, tell me if something happens with this, hope i helped the world
import json
import requests
safeInput = input('Request: ')
# Prepare the data payload
data = {
"prompt": safeInput
}
payload = json.dumps(data)
# Set the headers
headers = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0",
"Accept": "application/json, text/plain, */*",
"Accept-Language": "en-US,en;q=0.5",
"Content-Type": "application/json",
"Origin": "https://chatbot.theb.ai",
"Referer": "https://chatbot.theb.ai/"
}
# Send the POST request
url = "https://chatbot.theb.ai/api/chat-process"
response = requests.post(url, data=payload, headers=headers)
# Process the response
if response.status_code == 200:
response_text = response.text
# Find the last JSON string in the response text
json_strings = response_text.strip().split('\n')
last_json_string = json_strings[-1]
response_json = json.loads(last_json_string)
print(response_json['text'])
else:
print("Error:", response.status_code)
```
IF SOMEONE CAN MAKE A PLUGIN FOR THIS API, IT COULD BE REALLY APPRECIATED
The text was updated successfully, but these errors were encountered:
Hi my name is Kepar,
recently i found a chatgpt clone (3.5 turbo) model for free
i leave the code here, tell me if something happens with this, hope i helped the world
The text was updated successfully, but these errors were encountered: