Metadata-Version: 2.1
Name: freeGPT
Version: 1.1.7
Summary: freeGPT is a Python package that gives free access to GPT and more models.
Home-page: https://github.com/Ruu3f/freeGPT
Author: Ruu3f
License: GPLv3
Project-URL: Source, https://github.com/Ruu3f/freeGPT
Project-URL: Issues, https://github.com/Ruu3f/freeGPT/issues
Project-URL: Discord, http://dsc.gg/ruu3fstudio
Keywords: artificial-intelligence,machine-learning,ai-models,chatllama,alpaca-7b,gpt4free,freegpt,chatgpt,python,alpaca,openai,gpt3,gpt4,gpt,py,ai
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

[![PyPI version](https://badge.fury.io/py/freeGPT.svg)](https://badge.fury.io/py/freeGPT)
[![Downloads](https://static.pepy.tech/personalized-badge/freeGPT?period=month&units=international_system&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/freeGPT)
[![License](https://img.shields.io/badge/License-GPLv3-bright&green.svg)](LICENSE)
# freeGPT
freeGPT is a Python package that gives free access to GPT3 and GPT4 and more models.
<br>
Get started by installing the package:
```
py -m pip install --upgrade freeGPT
```
***Or add our [Discord bot](https://dsc.gg/freegpt), its [Open Sourced!](https://github.com/Ruu3f/freeGPT-discord-bot)***

## Source:
*Both GPT models have internet access.*
<br>
| Models            | Websites                                             |
| ----------------- | -----------------------------------------------------|
| gpt3              | [you.com](https://you.com)                           |
| gpt4              | [forefront.ai](https://chat.forefront.ai)            |
| alpaca_7b         | [chatllama.baseten.co](https://chatllama.baseten.co/)|

### 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.
- [x] Make a discord bot.
- [ ] Add a text to image generation model.

## Support me:
- Join my [Discord Server](https://discord.gg/NcQ26PrNDp) :D
- Star this repository :D

## Discord bot:
- Add the official freeGPT discord bot [here](https://dsc.gg/freegpt)
- This bot has ALL the models in this repository available.
- Its interactive, fast and overall easy to use.
- And lastly its [Open Sourced!](https://github.com/Ruu3f/freeGPT-discord-bot)

## Examples:

#### GPT-3:
```python
from freeGPT import gpt3

while True:
    prompt = input("👦 > ")
    try:
        # There is also a 'proxy' parameter.
        resp = gpt3.Completion.create(prompt=prompt)
        print(f"🤖 > {str(resp['text'])}")
    except Exception as e:
        print(f"🤖 > {str(e)}")
```
#### GPT-4:
```python
from freeGPT import gpt4

while True:
    token = gpt4.Account.create(logging=True)
    prompt = input("👦 > ")
    try:
        resp = gpt4.Completion.create(prompt=prompt, token=token)
        print(f"🤖 > {str(resp.text)}")
    except Exception as e:
        print(f"🤖 > {str(e)}")
```

#### Alpaca-7b:
```python
from freeGPT import alpaca_7b

while True:
    prompt = input("👦 > ")
    try:
        resp = alpaca_7b.Completion.create(prompt=prompt)
        print(f"🤖 > {str(resp)}")
    except Exception as e:
        print(f"🤖 > {str(e)}")
```

## Star History:
[![Star History Chart](https://api.star-history.com/svg?repos=Ruu3f/freeGPT&type=Date)](https://github.com/Ruu3f/freeGPT/stargazers)

