t.me/xtekky commited on
important note
Browse files
README.md
CHANGED
|
@@ -1,42 +1,59 @@
|
|
| 1 |
-
# Free LLM
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
##
|
| 8 |
|
| 9 |
-
- [
|
| 10 |
-
- [
|
| 11 |
-
- [
|
| 12 |
-
- [
|
| 13 |
-
- [t3nsor
|
|
|
|
| 14 |
|
| 15 |
-
##
|
| 16 |
|
| 17 |
-
|
| 18 |
-
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
##
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
```python
|
|
|
|
| 26 |
import poe
|
| 27 |
|
| 28 |
# poe.Account.create
|
| 29 |
# poe.Completion.create
|
| 30 |
# poe.StreamCompletion.create
|
|
|
|
|
|
|
|
|
|
| 31 |
```
|
| 32 |
|
| 33 |
-
Create Token (3-6s)
|
| 34 |
```python
|
| 35 |
token = poe.Account.create(logging = True)
|
| 36 |
print('token', token)
|
| 37 |
```
|
| 38 |
|
| 39 |
-
Streaming Response
|
| 40 |
```python
|
| 41 |
|
| 42 |
for response in poe.StreamingCompletion.create(model = 'gpt-4',
|
|
@@ -46,7 +63,7 @@ for response in poe.StreamingCompletion.create(model = 'gpt-4',
|
|
| 46 |
print(response.completion.choices[0].text, end="", flush=True)
|
| 47 |
```
|
| 48 |
|
| 49 |
-
Normal Response:
|
| 50 |
```python
|
| 51 |
|
| 52 |
response = poe.Completion.create(model = 'gpt-4',
|
|
@@ -58,21 +75,20 @@ print(response.completion.choices[0].text)
|
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
### `t3nsor` (use like openai pypi package)
|
| 65 |
-
|
| 66 |
-
Import t3nsor:
|
| 67 |
|
| 68 |
```python
|
|
|
|
| 69 |
import t3nsor
|
| 70 |
|
| 71 |
# t3nsor.Completion.create
|
| 72 |
# t3nsor.StreamCompletion.create
|
|
|
|
|
|
|
|
|
|
| 73 |
```
|
| 74 |
|
| 75 |
-
Example Chatbot
|
| 76 |
```python
|
| 77 |
messages = []
|
| 78 |
|
|
@@ -92,7 +108,7 @@ while True:
|
|
| 92 |
])
|
| 93 |
```
|
| 94 |
|
| 95 |
-
Streaming Response:
|
| 96 |
|
| 97 |
```python
|
| 98 |
for response in t3nsor.StreamCompletion.create(
|
|
@@ -102,9 +118,17 @@ for response in t3nsor.StreamCompletion.create(
|
|
| 102 |
print(response.completion.choices[0].text)
|
| 103 |
```
|
| 104 |
|
| 105 |
-
### `ora` (use like openai pypi package)
|
| 106 |
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
```python
|
| 109 |
# inport ora
|
| 110 |
import ora
|
|
@@ -134,9 +158,21 @@ while True:
|
|
| 134 |
print(response.completion.choices[0].text)
|
| 135 |
```
|
| 136 |
|
|
|
|
| 137 |
|
|
|
|
| 138 |
|
|
|
|
|
|
|
|
|
|
| 139 |
|
|
|
|
| 140 |
|
|
|
|
| 141 |
|
| 142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Free LLM APIs
|
| 2 |
|
| 3 |
+
This repository provides reverse-engineered language models from various sources. Some of these models are already available in the repo, while others are currently being worked on.
|
| 4 |
|
| 5 |
+
> **Important:** If you come across any website offering free language models, please create an issue or submit a pull request with the details. We will reverse engineer it and add it to this repository.
|
| 6 |
|
| 7 |
+
## Table of Contents
|
| 8 |
|
| 9 |
+
- [Current Sites (No Authentication / Easy Account Creation)](#current-sites)
|
| 10 |
+
- [Sites with Authentication (Will Reverse Engineer but Need Account Access)](#sites-with-authentication)
|
| 11 |
+
- [Usage Examples](#usage-examples)
|
| 12 |
+
- [`poe`](#example-poe)
|
| 13 |
+
- [`t3nsor`](#example-t3nsor)
|
| 14 |
+
- [`ora`](#example-ora)
|
| 15 |
|
| 16 |
+
## Current Sites <a name="current-sites"></a>
|
| 17 |
|
| 18 |
+
| Website | Model(s) |
|
| 19 |
+
| -------------------------- | -------------------- |
|
| 20 |
+
| [ora.sh](https://ora.sh) | GPT-3.5 |
|
| 21 |
+
| [nat.dev](https://nat.dev) | GPT-4/3.5 (paid now, looking for bypass)|
|
| 22 |
+
| [poe.com](https://poe.com) | GPT-4/3.5 |
|
| 23 |
+
| [writesonic.com](https://writesonic.com)|GPT-3.5 / Internet|
|
| 24 |
+
|[t3nsor.com](https://t3nsor.com)|GPT-3.5|
|
| 25 |
|
| 26 |
+
## Sites with Authentication <a name="sites-with-authentication"></a>
|
| 27 |
|
| 28 |
+
These sites will be reverse engineered but need account access:
|
| 29 |
+
|
| 30 |
+
* [chat.openai.com/chat](https://chat.openai.com/chat)
|
| 31 |
+
* [bard.google.com](https://bard.google.com)
|
| 32 |
+
* [bing.com/chat](https://bing.com/chat)
|
| 33 |
+
|
| 34 |
+
## Usage Examples <a name="usage-examples"></a>
|
| 35 |
+
|
| 36 |
+
### Example: `poe` (use like openai pypi package) - GPT-4 <a name="example-poe"></a>
|
| 37 |
|
| 38 |
```python
|
| 39 |
+
# Import poe
|
| 40 |
import poe
|
| 41 |
|
| 42 |
# poe.Account.create
|
| 43 |
# poe.Completion.create
|
| 44 |
# poe.StreamCompletion.create
|
| 45 |
+
|
| 46 |
+
[...]
|
| 47 |
+
|
| 48 |
```
|
| 49 |
|
| 50 |
+
#### Create Token (3-6s)
|
| 51 |
```python
|
| 52 |
token = poe.Account.create(logging = True)
|
| 53 |
print('token', token)
|
| 54 |
```
|
| 55 |
|
| 56 |
+
#### Streaming Response
|
| 57 |
```python
|
| 58 |
|
| 59 |
for response in poe.StreamingCompletion.create(model = 'gpt-4',
|
|
|
|
| 63 |
print(response.completion.choices[0].text, end="", flush=True)
|
| 64 |
```
|
| 65 |
|
| 66 |
+
#### Normal Response:
|
| 67 |
```python
|
| 68 |
|
| 69 |
response = poe.Completion.create(model = 'gpt-4',
|
|
|
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
+
### Example: `t3nsor` (use like openai pypi package) <a name="example-t3nsor"></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
```python
|
| 81 |
+
# Import t3nsor
|
| 82 |
import t3nsor
|
| 83 |
|
| 84 |
# t3nsor.Completion.create
|
| 85 |
# t3nsor.StreamCompletion.create
|
| 86 |
+
|
| 87 |
+
[...]
|
| 88 |
+
|
| 89 |
```
|
| 90 |
|
| 91 |
+
#### Example Chatbot
|
| 92 |
```python
|
| 93 |
messages = []
|
| 94 |
|
|
|
|
| 108 |
])
|
| 109 |
```
|
| 110 |
|
| 111 |
+
#### Streaming Response:
|
| 112 |
|
| 113 |
```python
|
| 114 |
for response in t3nsor.StreamCompletion.create(
|
|
|
|
| 118 |
print(response.completion.choices[0].text)
|
| 119 |
```
|
| 120 |
|
| 121 |
+
### Example: `ora` (use like openai pypi package) <a name="example-ora"></a>
|
| 122 |
|
| 123 |
+
```python
|
| 124 |
+
# import ora
|
| 125 |
+
import ora
|
| 126 |
+
|
| 127 |
+
[...]
|
| 128 |
+
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
#### create model / chatbot:
|
| 132 |
```python
|
| 133 |
# inport ora
|
| 134 |
import ora
|
|
|
|
| 158 |
print(response.completion.choices[0].text)
|
| 159 |
```
|
| 160 |
|
| 161 |
+
## Dependencies
|
| 162 |
|
| 163 |
+
The repository is written in Python and requires the following packages:
|
| 164 |
|
| 165 |
+
* websocket-client
|
| 166 |
+
* requests
|
| 167 |
+
* tls-client
|
| 168 |
|
| 169 |
+
You can install these packages using the provided `requirements.txt` file.
|
| 170 |
|
| 171 |
+
## Repository structure:
|
| 172 |
|
| 173 |
+
.
|
| 174 |
+
├── ora/
|
| 175 |
+
├── poe/
|
| 176 |
+
├── t3nsor/
|
| 177 |
+
├── README.md <-- this file.
|
| 178 |
+
└── requirements.txt
|