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
This commit is contained in:
parent
633bcd81d7
commit
3be905b742
38 changed files with 27 additions and 25 deletions
24
README.md
24
README.md
|
@ -8,7 +8,7 @@ This repository provides reverse-engineered language models from various sources
|
||||||
|
|
||||||
- [ ] implement poe.com create bot feature (4)
|
- [ ] implement poe.com create bot feature (4)
|
||||||
- [ ] poe.com chat history management (3)
|
- [ ] 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)
|
- [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)
|
- [Current Sites (No Authentication / Easy Account Creation)](#current-sites)
|
||||||
- [Sites with Authentication (Will Reverse Engineer but Need Account Access)](#sites-with-authentication)
|
- [Sites with Authentication (Will Reverse Engineer but Need Account Access)](#sites-with-authentication)
|
||||||
- [Usage Examples](#usage-examples)
|
- [Usage Examples](#usage-examples)
|
||||||
- [`poe`](#example-poe)
|
- [`quora (poe)`](#example-poe)
|
||||||
- [`t3nsor`](#example-t3nsor)
|
- [`t3nsor`](#example-t3nsor)
|
||||||
- [`ora`](#example-ora)
|
- [`ora`](#example-ora)
|
||||||
- [`writesonic`](#example-writesonic)
|
- [`writesonic`](#example-writesonic)
|
||||||
|
@ -44,15 +44,15 @@ These sites will be reverse engineered but need account access:
|
||||||
|
|
||||||
## Usage Examples <a name="usage-examples"></a>
|
## 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
|
```python
|
||||||
# Import poe
|
# Import quora (poe)
|
||||||
import poe
|
import quora
|
||||||
|
|
||||||
# poe.Account.create
|
# quora.Account.create
|
||||||
# poe.Completion.create
|
# quora.Completion.create
|
||||||
# poe.StreamCompletion.create
|
# quora.StreamCompletion.create
|
||||||
|
|
||||||
[...]
|
[...]
|
||||||
|
|
||||||
|
@ -60,14 +60,14 @@ import poe
|
||||||
|
|
||||||
#### Create Token (3-6s)
|
#### Create Token (3-6s)
|
||||||
```python
|
```python
|
||||||
token = poe.Account.create(logging = True)
|
token = quora.Account.create(logging = True)
|
||||||
print('token', token)
|
print('token', token)
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Streaming Response
|
#### Streaming Response
|
||||||
```python
|
```python
|
||||||
|
|
||||||
for response in poe.StreamingCompletion.create(model = 'gpt-4',
|
for response in quora.StreamingCompletion.create(model = 'gpt-4',
|
||||||
prompt = 'hello world',
|
prompt = 'hello world',
|
||||||
token = token):
|
token = token):
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ for response in poe.StreamingCompletion.create(model = 'gpt-4',
|
||||||
#### Normal Response:
|
#### Normal Response:
|
||||||
```python
|
```python
|
||||||
|
|
||||||
response = poe.Completion.create(model = 'gpt-4',
|
response = quora.Completion.create(model = 'gpt-4',
|
||||||
prompt = 'hello world',
|
prompt = 'hello world',
|
||||||
token = token)
|
token = token)
|
||||||
|
|
||||||
|
@ -273,7 +273,7 @@ You can install these packages using the provided `requirements.txt` file.
|
||||||
## Repository structure:
|
## Repository structure:
|
||||||
.
|
.
|
||||||
├── ora/
|
├── ora/
|
||||||
├── poe/
|
├── quora/ (/poe)
|
||||||
├── t3nsor/
|
├── t3nsor/
|
||||||
├── testing/
|
├── testing/
|
||||||
├── writesonic/
|
├── writesonic/
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
from poe.api import Client as PoeClient
|
from quora.api import Client as PoeClient
|
||||||
from poe.mail import Mail
|
from quora.mail import Mail
|
||||||
from requests import Session
|
from requests import Session
|
||||||
from re import search, findall
|
from re import search, findall
|
||||||
from json import loads
|
from json import loads
|
||||||
from time import sleep, time
|
from time import sleep, time
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from random import choice
|
from random import choice
|
||||||
from urllib import parse
|
from urllib import parse
|
||||||
|
|
||||||
class PoeResponse:
|
class PoeResponse:
|
||||||
|
|
||||||
class Completion:
|
class Completion:
|
|
@ -5,3 +5,5 @@ NEttgJ_rRQdO05Tppx6hFw==
|
||||||
8hZKR7MxwUTEHvO45TEViw==
|
8hZKR7MxwUTEHvO45TEViw==
|
||||||
Eea6BqK0AmosTKzoI3AAow==
|
Eea6BqK0AmosTKzoI3AAow==
|
||||||
pUEbtxobN_QUSpLIR8RGww==
|
pUEbtxobN_QUSpLIR8RGww==
|
||||||
|
9_dUWxKkHHhpQRSvCvBk2Q==
|
||||||
|
UV45rvGwUwi2qV9QdIbMcw==
|
|
@ -1,12 +1,12 @@
|
||||||
import poe
|
import quora
|
||||||
from time import sleep
|
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)
|
print('token', token)
|
||||||
|
|
||||||
sleep(2)
|
sleep(2)
|
||||||
|
|
||||||
for response in poe.StreamingCompletion.create(model = 'gpt-4',
|
for response in quora.StreamingCompletion.create(model = 'gpt-4',
|
||||||
prompt = 'hello world',
|
prompt = 'hello world',
|
||||||
token = token):
|
token = token):
|
||||||
|
|
Loading…
Reference in a new issue