Spaces:
Running
Running
File size: 2,196 Bytes
aae4949 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
[](https://badge.fury.io/py/freeGPT)
[](https://pepy.tech/project/freeGPT)
[](LICENSE)
# freeGPT
A Python package that gives access to GPT3 & GPT4 models for free.
<br>
Get started by installing the package:
```
py -m pip install --upgrade freeGPT
```
## Source:
*Models with .web have internet access on.*
<br>
| Models | Websites |
| ----------------- | -----------------------------------------|
| gpt3 | [you.com](https://you.com) |
| gpt4 | [forefront.ai](https://chat.forefront.ai)|
### TODO-List:
- [x] Add GPT-4.
- [x] Make the library well-documented.
- [x] Make the over-all library easier to use.
- [x] Make the over-all library easier to understand.
- [x] Replace you.com with theb.ai for less failed responses.
- [x] Make GPT-3 & GPT-4 models with web access.
- [x] Add a non-GPT model.
- [ ] Add a text to image generation model.
- [ ] Make a discord bot.
## Support me:
- Join my [Discord Server](https://discord.gg/NcQ26PrNDp) :D
- Star this repository :D
## Examples:
#### Alpaca-7b:
```python
from freeGPT import alpaca
while True:
prompt = input("π¦ > ")
resp = alpaca.Completion.create(prompt=prompt)
print(f"π€ > {resp}")
```
#### GPT-3:
```python
from freeGPT import gpt3
while True:
prompt = input("π¦ > ")
resp = gpt3.Completion.create(prompt=prompt)
print(f"π€ > {resp['text']}")
```
#### GPT-4:
```python
# Uhh, sorry but gpt4 is kinda broken currently, will maybe get fixed in the next update.
from freeGPT import gpt4
while True:
token = Account.create(logging=True)
prompt = input("π¦ > ")
resp = gpt4.Completion.create(prompt=prompt, token=token)
print(f"π€ > {resp.text}")
```
## Star History:
[](https://github.com/Ruu3f/freeGPT/stargazers)
|