summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpt4free/quora/README.md9
-rw-r--r--testing/poe_test.py4
2 files changed, 12 insertions, 1 deletions
diff --git a/gpt4free/quora/README.md b/gpt4free/quora/README.md
index 9c652c59..88fd0093 100644
--- a/gpt4free/quora/README.md
+++ b/gpt4free/quora/README.md
@@ -65,4 +65,13 @@ poe.chat('who won the football world cup most?')
# new bot creation
poe.create_bot('new_bot_name', prompt='You are new test bot', base_model='gpt-3.5-turbo')
+# delete account
+poe.delete_account()
+```
+
+### Deleting the Poe Account
+```python
+from gpt4free import quora
+
+quora.Account.delete(token='')
```
diff --git a/testing/poe_test.py b/testing/poe_test.py
index 22d95f5f..6edc030c 100644
--- a/testing/poe_test.py
+++ b/testing/poe_test.py
@@ -1,6 +1,6 @@
from time import sleep
-from gpt4free import quora
+from gpt4free import quora
token = quora.Account.create(proxy=None, logging=True)
print('token', token)
@@ -9,3 +9,5 @@ sleep(2)
for response in quora.StreamingCompletion.create(model='ChatGPT', prompt='hello world', token=token):
print(response.text, flush=True)
+
+quora.Account.delete(token)