Skip to content

Commit

Permalink
rename poe api ( gpt 4 ) to quora
Browse files Browse the repository at this point in the history
due to having same name as poe-api, I changed the name for it to be used with the other package
  • Loading branch information
xtekky committed Apr 9, 2023
1 parent 633bcd8 commit 3be905b
Show file tree
Hide file tree
Showing 38 changed files with 27 additions and 25 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand All @@ -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)
Expand All @@ -44,30 +44,30 @@ These sites will be reverse engineered but need account access:

## Usage Examples <a name="usage-examples"></a>

### Example: `poe` (use like openai pypi package) - GPT-4 <a name="example-poe"></a>
### Example: `quora (poe)` (use like openai pypi package) - GPT-4 <a name="example-poe"></a>

```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

[...]

```

#### 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):

Expand All @@ -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)

Expand Down Expand Up @@ -273,7 +273,7 @@ You can install these packages using the provided `requirements.txt` file.
## Repository structure:
.
├── ora/
├── poe/
├── quora/ (/poe)
├── t3nsor/
├── testing/
├── writesonic/
Expand Down
20 changes: 10 additions & 10 deletions poe/__init__.py → quora/__init__.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions poe/cookies.txt → quora/cookies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ NEttgJ_rRQdO05Tppx6hFw==
8hZKR7MxwUTEHvO45TEViw==
Eea6BqK0AmosTKzoI3AAow==
pUEbtxobN_QUSpLIR8RGww==
9_dUWxKkHHhpQRSvCvBk2Q==
UV45rvGwUwi2qV9QdIbMcw==
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions testing/poe_test.py → quora/poe_test.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import poe
import quora
from time import sleep

token = poe.Account.create(proxy = 'xtekky:[email protected]:12321',logging = True)
token = quora.Account.create(proxy = 'xtekky:[email protected]: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):

Expand Down

0 comments on commit 3be905b

Please sign in to comment.