No project description provided
Project description
revChatGPTAuth
Authenticate using your browser's cookies - no need to inconveniently copy and paste from your browser!
Getting Started
Prerequisites
- <= Python 3.9
Installing
pip install revChatGPTAuth
Usage
from revChatGPTAuth import get_access_token
access_token = get_access_token('brave') # your browser
With revChatGPT
The following example codes are from the revChatGPT
README.
Basic example (streamed)
from revChatGPT.V1 import Chatbot
from revChatGPTAuth import get_access_token
chatbot = Chatbot(config={
"access_token": get_access_token('brave')
})
print("Chatbot: ")
prev_text = ""
for data in chatbot.ask(
"Hello world",
):
message = data["message"][len(prev_text) :]
print(message, end="", flush=True)
prev_text = data["message"]
print()
Basic example (single result)
from revChatGPT.V1 import Chatbot
from revChatGPTAuth import get_access_token
chatbot = Chatbot(config={
"access_token": get_access_token('brave')
})
prompt = "how many beaches does portugal have?"
response = ""
for data in chatbot.ask(
prompt
):
response = data["message"]
print(response)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for revchatgptauth-2023.4.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 206a4ebb661df35c17caf9587f9ec05f46135d7cccf110c4ee8a638e62eee39c |
|
MD5 | 4ff002b4b8ef9b9f96a7639bb73dde65 |
|
BLAKE2b-256 | 209269fad7fb94f36e50607e4ccc61ab276b20c762eb7151e4a7c8a54a5b1d02 |