From 3be905b742b040c7f497727f9e765a8d709baa44 Mon Sep 17 00:00:00 2001
From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com>
Date: Mon, 10 Apr 2023 01:09:29 +0200
Subject: [PATCH] rename poe api ( gpt 4 ) to quora
due to having same name as poe-api, I changed the name for it to be used with the other package
---
README.md | 24 +++++++++----------
{poe => quora}/__init__.py | 20 ++++++++--------
{poe => quora}/api.py | 0
{poe => quora}/cookies.txt | 2 ++
.../graphql/AddHumanMessageMutation.graphql | 0
.../graphql/AddMessageBreakMutation.graphql | 0
.../graphql/AutoSubscriptionMutation.graphql | 0
{poe => quora}/graphql/BioFragment.graphql | 0
.../graphql/ChatAddedSubscription.graphql | 0
{poe => quora}/graphql/ChatFragment.graphql | 0
.../graphql/ChatListPaginationQuery.graphql | 0
.../graphql/ChatPaginationQuery.graphql | 0
{poe => quora}/graphql/ChatViewQuery.graphql | 0
.../DeleteHumanMessagesMutation.graphql | 0
.../graphql/DeleteMessageMutation.graphql | 0
{poe => quora}/graphql/HandleFragment.graphql | 0
.../LoginWithVerificationCodeMutation.graphql | 0
.../graphql/MessageAddedSubscription.graphql | 0
.../MessageDeletedSubscription.graphql | 0
.../graphql/MessageFragment.graphql | 0
.../graphql/MessageRemoveVoteMutation.graphql | 0
.../graphql/MessageSetVoteMutation.graphql | 0
.../graphql/SendMessageMutation.graphql | 0
...ndVerificationCodeForLoginMutation.graphql | 0
.../graphql/ShareMessagesMutation.graphql | 0
...SignupWithVerificationCodeMutation.graphql | 0
.../graphql/StaleChatUpdateMutation.graphql | 0
.../graphql/SubscriptionsMutation.graphql | 0
.../graphql/SummarizePlainPostQuery.graphql | 0
.../graphql/SummarizeQuotePostQuery.graphql | 0
.../graphql/SummarizeSharePostQuery.graphql | 0
.../graphql/UserSnippetFragment.graphql | 0
.../graphql/ViewerInfoQuery.graphql | 0
.../graphql/ViewerStateFragment.graphql | 0
.../ViewerStateUpdatedSubscription.graphql | 0
{poe => quora}/graphql/__init__.py | 0
{poe => quora}/mail.py | 0
{testing => quora}/poe_test.py | 6 ++---
38 files changed, 27 insertions(+), 25 deletions(-)
rename {poe => quora}/__init__.py (96%)
rename {poe => quora}/api.py (100%)
rename {poe => quora}/cookies.txt (77%)
rename {poe => quora}/graphql/AddHumanMessageMutation.graphql (100%)
rename {poe => quora}/graphql/AddMessageBreakMutation.graphql (100%)
rename {poe => quora}/graphql/AutoSubscriptionMutation.graphql (100%)
rename {poe => quora}/graphql/BioFragment.graphql (100%)
rename {poe => quora}/graphql/ChatAddedSubscription.graphql (100%)
rename {poe => quora}/graphql/ChatFragment.graphql (100%)
rename {poe => quora}/graphql/ChatListPaginationQuery.graphql (100%)
rename {poe => quora}/graphql/ChatPaginationQuery.graphql (100%)
rename {poe => quora}/graphql/ChatViewQuery.graphql (100%)
rename {poe => quora}/graphql/DeleteHumanMessagesMutation.graphql (100%)
rename {poe => quora}/graphql/DeleteMessageMutation.graphql (100%)
rename {poe => quora}/graphql/HandleFragment.graphql (100%)
rename {poe => quora}/graphql/LoginWithVerificationCodeMutation.graphql (100%)
rename {poe => quora}/graphql/MessageAddedSubscription.graphql (100%)
rename {poe => quora}/graphql/MessageDeletedSubscription.graphql (100%)
rename {poe => quora}/graphql/MessageFragment.graphql (100%)
rename {poe => quora}/graphql/MessageRemoveVoteMutation.graphql (100%)
rename {poe => quora}/graphql/MessageSetVoteMutation.graphql (100%)
rename {poe => quora}/graphql/SendMessageMutation.graphql (100%)
rename {poe => quora}/graphql/SendVerificationCodeForLoginMutation.graphql (100%)
rename {poe => quora}/graphql/ShareMessagesMutation.graphql (100%)
rename {poe => quora}/graphql/SignupWithVerificationCodeMutation.graphql (100%)
rename {poe => quora}/graphql/StaleChatUpdateMutation.graphql (100%)
rename {poe => quora}/graphql/SubscriptionsMutation.graphql (100%)
rename {poe => quora}/graphql/SummarizePlainPostQuery.graphql (100%)
rename {poe => quora}/graphql/SummarizeQuotePostQuery.graphql (100%)
rename {poe => quora}/graphql/SummarizeSharePostQuery.graphql (100%)
rename {poe => quora}/graphql/UserSnippetFragment.graphql (100%)
rename {poe => quora}/graphql/ViewerInfoQuery.graphql (100%)
rename {poe => quora}/graphql/ViewerStateFragment.graphql (100%)
rename {poe => quora}/graphql/ViewerStateUpdatedSubscription.graphql (100%)
rename {poe => quora}/graphql/__init__.py (100%)
rename {poe => quora}/mail.py (100%)
rename {testing => quora}/poe_test.py (50%)
diff --git a/README.md b/README.md
index af03cac3f94..0fcbfc79b8e 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ This repository provides reverse-engineered language models from various sources
- [ ] implement poe.com create bot feature (4)
- [ ] poe.com chat history management (3)
-- [ ] renaming the 'poe' module to 'quora' (2)
+- [x] renaming the 'poe' module to 'quora' (2)
- [x] add you.com api (1)
@@ -17,7 +17,7 @@ This repository provides reverse-engineered language models from various sources
- [Current Sites (No Authentication / Easy Account Creation)](#current-sites)
- [Sites with Authentication (Will Reverse Engineer but Need Account Access)](#sites-with-authentication)
- [Usage Examples](#usage-examples)
- - [`poe`](#example-poe)
+ - [`quora (poe)`](#example-poe)
- [`t3nsor`](#example-t3nsor)
- [`ora`](#example-ora)
- [`writesonic`](#example-writesonic)
@@ -44,15 +44,15 @@ These sites will be reverse engineered but need account access:
## Usage Examples
-### Example: `poe` (use like openai pypi package) - GPT-4
+### Example: `quora (poe)` (use like openai pypi package) - GPT-4
```python
-# Import poe
-import poe
+# Import quora (poe)
+import quora
-# poe.Account.create
-# poe.Completion.create
-# poe.StreamCompletion.create
+# quora.Account.create
+# quora.Completion.create
+# quora.StreamCompletion.create
[...]
@@ -60,14 +60,14 @@ import poe
#### Create Token (3-6s)
```python
-token = poe.Account.create(logging = True)
+token = quora.Account.create(logging = True)
print('token', token)
```
#### Streaming Response
```python
-for response in poe.StreamingCompletion.create(model = 'gpt-4',
+for response in quora.StreamingCompletion.create(model = 'gpt-4',
prompt = 'hello world',
token = token):
@@ -77,7 +77,7 @@ for response in poe.StreamingCompletion.create(model = 'gpt-4',
#### Normal Response:
```python
-response = poe.Completion.create(model = 'gpt-4',
+response = quora.Completion.create(model = 'gpt-4',
prompt = 'hello world',
token = token)
@@ -273,7 +273,7 @@ You can install these packages using the provided `requirements.txt` file.
## Repository structure:
.
├── ora/
- ├── poe/
+ ├── quora/ (/poe)
├── t3nsor/
├── testing/
├── writesonic/
diff --git a/poe/__init__.py b/quora/__init__.py
similarity index 96%
rename from poe/__init__.py
rename to quora/__init__.py
index d1cb8ae5535..5cae5905699 100644
--- a/poe/__init__.py
+++ b/quora/__init__.py
@@ -1,13 +1,13 @@
-from poe.api import Client as PoeClient
-from poe.mail import Mail
-from requests import Session
-from re import search, findall
-from json import loads
-from time import sleep, time
-from pathlib import Path
-from random import choice
-from urllib import parse
-
+from quora.api import Client as PoeClient
+from quora.mail import Mail
+from requests import Session
+from re import search, findall
+from json import loads
+from time import sleep, time
+from pathlib import Path
+from random import choice
+from urllib import parse
+
class PoeResponse:
class Completion:
diff --git a/poe/api.py b/quora/api.py
similarity index 100%
rename from poe/api.py
rename to quora/api.py
diff --git a/poe/cookies.txt b/quora/cookies.txt
similarity index 77%
rename from poe/cookies.txt
rename to quora/cookies.txt
index 0cbd6ca96d8..3209efe9ec7 100644
--- a/poe/cookies.txt
+++ b/quora/cookies.txt
@@ -5,3 +5,5 @@ NEttgJ_rRQdO05Tppx6hFw==
8hZKR7MxwUTEHvO45TEViw==
Eea6BqK0AmosTKzoI3AAow==
pUEbtxobN_QUSpLIR8RGww==
+9_dUWxKkHHhpQRSvCvBk2Q==
+UV45rvGwUwi2qV9QdIbMcw==
diff --git a/poe/graphql/AddHumanMessageMutation.graphql b/quora/graphql/AddHumanMessageMutation.graphql
similarity index 100%
rename from poe/graphql/AddHumanMessageMutation.graphql
rename to quora/graphql/AddHumanMessageMutation.graphql
diff --git a/poe/graphql/AddMessageBreakMutation.graphql b/quora/graphql/AddMessageBreakMutation.graphql
similarity index 100%
rename from poe/graphql/AddMessageBreakMutation.graphql
rename to quora/graphql/AddMessageBreakMutation.graphql
diff --git a/poe/graphql/AutoSubscriptionMutation.graphql b/quora/graphql/AutoSubscriptionMutation.graphql
similarity index 100%
rename from poe/graphql/AutoSubscriptionMutation.graphql
rename to quora/graphql/AutoSubscriptionMutation.graphql
diff --git a/poe/graphql/BioFragment.graphql b/quora/graphql/BioFragment.graphql
similarity index 100%
rename from poe/graphql/BioFragment.graphql
rename to quora/graphql/BioFragment.graphql
diff --git a/poe/graphql/ChatAddedSubscription.graphql b/quora/graphql/ChatAddedSubscription.graphql
similarity index 100%
rename from poe/graphql/ChatAddedSubscription.graphql
rename to quora/graphql/ChatAddedSubscription.graphql
diff --git a/poe/graphql/ChatFragment.graphql b/quora/graphql/ChatFragment.graphql
similarity index 100%
rename from poe/graphql/ChatFragment.graphql
rename to quora/graphql/ChatFragment.graphql
diff --git a/poe/graphql/ChatListPaginationQuery.graphql b/quora/graphql/ChatListPaginationQuery.graphql
similarity index 100%
rename from poe/graphql/ChatListPaginationQuery.graphql
rename to quora/graphql/ChatListPaginationQuery.graphql
diff --git a/poe/graphql/ChatPaginationQuery.graphql b/quora/graphql/ChatPaginationQuery.graphql
similarity index 100%
rename from poe/graphql/ChatPaginationQuery.graphql
rename to quora/graphql/ChatPaginationQuery.graphql
diff --git a/poe/graphql/ChatViewQuery.graphql b/quora/graphql/ChatViewQuery.graphql
similarity index 100%
rename from poe/graphql/ChatViewQuery.graphql
rename to quora/graphql/ChatViewQuery.graphql
diff --git a/poe/graphql/DeleteHumanMessagesMutation.graphql b/quora/graphql/DeleteHumanMessagesMutation.graphql
similarity index 100%
rename from poe/graphql/DeleteHumanMessagesMutation.graphql
rename to quora/graphql/DeleteHumanMessagesMutation.graphql
diff --git a/poe/graphql/DeleteMessageMutation.graphql b/quora/graphql/DeleteMessageMutation.graphql
similarity index 100%
rename from poe/graphql/DeleteMessageMutation.graphql
rename to quora/graphql/DeleteMessageMutation.graphql
diff --git a/poe/graphql/HandleFragment.graphql b/quora/graphql/HandleFragment.graphql
similarity index 100%
rename from poe/graphql/HandleFragment.graphql
rename to quora/graphql/HandleFragment.graphql
diff --git a/poe/graphql/LoginWithVerificationCodeMutation.graphql b/quora/graphql/LoginWithVerificationCodeMutation.graphql
similarity index 100%
rename from poe/graphql/LoginWithVerificationCodeMutation.graphql
rename to quora/graphql/LoginWithVerificationCodeMutation.graphql
diff --git a/poe/graphql/MessageAddedSubscription.graphql b/quora/graphql/MessageAddedSubscription.graphql
similarity index 100%
rename from poe/graphql/MessageAddedSubscription.graphql
rename to quora/graphql/MessageAddedSubscription.graphql
diff --git a/poe/graphql/MessageDeletedSubscription.graphql b/quora/graphql/MessageDeletedSubscription.graphql
similarity index 100%
rename from poe/graphql/MessageDeletedSubscription.graphql
rename to quora/graphql/MessageDeletedSubscription.graphql
diff --git a/poe/graphql/MessageFragment.graphql b/quora/graphql/MessageFragment.graphql
similarity index 100%
rename from poe/graphql/MessageFragment.graphql
rename to quora/graphql/MessageFragment.graphql
diff --git a/poe/graphql/MessageRemoveVoteMutation.graphql b/quora/graphql/MessageRemoveVoteMutation.graphql
similarity index 100%
rename from poe/graphql/MessageRemoveVoteMutation.graphql
rename to quora/graphql/MessageRemoveVoteMutation.graphql
diff --git a/poe/graphql/MessageSetVoteMutation.graphql b/quora/graphql/MessageSetVoteMutation.graphql
similarity index 100%
rename from poe/graphql/MessageSetVoteMutation.graphql
rename to quora/graphql/MessageSetVoteMutation.graphql
diff --git a/poe/graphql/SendMessageMutation.graphql b/quora/graphql/SendMessageMutation.graphql
similarity index 100%
rename from poe/graphql/SendMessageMutation.graphql
rename to quora/graphql/SendMessageMutation.graphql
diff --git a/poe/graphql/SendVerificationCodeForLoginMutation.graphql b/quora/graphql/SendVerificationCodeForLoginMutation.graphql
similarity index 100%
rename from poe/graphql/SendVerificationCodeForLoginMutation.graphql
rename to quora/graphql/SendVerificationCodeForLoginMutation.graphql
diff --git a/poe/graphql/ShareMessagesMutation.graphql b/quora/graphql/ShareMessagesMutation.graphql
similarity index 100%
rename from poe/graphql/ShareMessagesMutation.graphql
rename to quora/graphql/ShareMessagesMutation.graphql
diff --git a/poe/graphql/SignupWithVerificationCodeMutation.graphql b/quora/graphql/SignupWithVerificationCodeMutation.graphql
similarity index 100%
rename from poe/graphql/SignupWithVerificationCodeMutation.graphql
rename to quora/graphql/SignupWithVerificationCodeMutation.graphql
diff --git a/poe/graphql/StaleChatUpdateMutation.graphql b/quora/graphql/StaleChatUpdateMutation.graphql
similarity index 100%
rename from poe/graphql/StaleChatUpdateMutation.graphql
rename to quora/graphql/StaleChatUpdateMutation.graphql
diff --git a/poe/graphql/SubscriptionsMutation.graphql b/quora/graphql/SubscriptionsMutation.graphql
similarity index 100%
rename from poe/graphql/SubscriptionsMutation.graphql
rename to quora/graphql/SubscriptionsMutation.graphql
diff --git a/poe/graphql/SummarizePlainPostQuery.graphql b/quora/graphql/SummarizePlainPostQuery.graphql
similarity index 100%
rename from poe/graphql/SummarizePlainPostQuery.graphql
rename to quora/graphql/SummarizePlainPostQuery.graphql
diff --git a/poe/graphql/SummarizeQuotePostQuery.graphql b/quora/graphql/SummarizeQuotePostQuery.graphql
similarity index 100%
rename from poe/graphql/SummarizeQuotePostQuery.graphql
rename to quora/graphql/SummarizeQuotePostQuery.graphql
diff --git a/poe/graphql/SummarizeSharePostQuery.graphql b/quora/graphql/SummarizeSharePostQuery.graphql
similarity index 100%
rename from poe/graphql/SummarizeSharePostQuery.graphql
rename to quora/graphql/SummarizeSharePostQuery.graphql
diff --git a/poe/graphql/UserSnippetFragment.graphql b/quora/graphql/UserSnippetFragment.graphql
similarity index 100%
rename from poe/graphql/UserSnippetFragment.graphql
rename to quora/graphql/UserSnippetFragment.graphql
diff --git a/poe/graphql/ViewerInfoQuery.graphql b/quora/graphql/ViewerInfoQuery.graphql
similarity index 100%
rename from poe/graphql/ViewerInfoQuery.graphql
rename to quora/graphql/ViewerInfoQuery.graphql
diff --git a/poe/graphql/ViewerStateFragment.graphql b/quora/graphql/ViewerStateFragment.graphql
similarity index 100%
rename from poe/graphql/ViewerStateFragment.graphql
rename to quora/graphql/ViewerStateFragment.graphql
diff --git a/poe/graphql/ViewerStateUpdatedSubscription.graphql b/quora/graphql/ViewerStateUpdatedSubscription.graphql
similarity index 100%
rename from poe/graphql/ViewerStateUpdatedSubscription.graphql
rename to quora/graphql/ViewerStateUpdatedSubscription.graphql
diff --git a/poe/graphql/__init__.py b/quora/graphql/__init__.py
similarity index 100%
rename from poe/graphql/__init__.py
rename to quora/graphql/__init__.py
diff --git a/poe/mail.py b/quora/mail.py
similarity index 100%
rename from poe/mail.py
rename to quora/mail.py
diff --git a/testing/poe_test.py b/quora/poe_test.py
similarity index 50%
rename from testing/poe_test.py
rename to quora/poe_test.py
index 99c3bea4068..cfc94966cea 100644
--- a/testing/poe_test.py
+++ b/quora/poe_test.py
@@ -1,12 +1,12 @@
-import poe
+import quora
from time import sleep
-token = poe.Account.create(proxy = 'xtekky:ogingoi2n3g@geo.iproyal.com:12321',logging = True)
+token = quora.Account.create(proxy = 'xtekky:ogingoi2n3g@geo.iproyal.com:12321',logging = True)
print('token', token)
sleep(2)
-for response in poe.StreamingCompletion.create(model = 'gpt-4',
+for response in quora.StreamingCompletion.create(model = 'gpt-4',
prompt = 'hello world',
token = token):