Skip to content
/ freeGPT Public
forked from Ruu3f/freeGPT

freeGPT is a Python package that gives access to GPT and more models for free.

License

Notifications You must be signed in to change notification settings

ko9ma7/freeGPT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI Downloads Status

freeGPT

freeGPT provides free access to GPT3, GPT4 and more models.

Get started:

python -m pip install -U freeGPT

Or add the freeGPT Discord bot, it's open-sourced!

Join my Discord server for live chat, support, or if you have any issues with this package.

Source:

Models Websites
gpt3 <ava-ai-ef611.web.app>
gpt4 <you.com>
alpaca_7b <chatllama.baseten.co>
prodia <prodia.com>
pollinations <pollinations.ai>

Support this repository:

  • Star the project: Star this and the freeGPT-discord-bot repository. It means a lot to me! 💕
  • 🤖 Add the freeGPT Discord bot: Use the freeGPT bot by adding it to your Discord servers.
  • 🎉 Join our Discord Server: Try the bot and chat with others. Join here:

DiscordWidget

TODO List:

  • Make the library well-documented.
  • Make the overall library easier to use.
  • Make the overall library easier to understand.
  • Add a non-GPT model.
  • Make a discord bot.
  • Make a ChatUI.
  • Add an image generation model.

Discord bot:

  • Add the freeGPT Discord bot.
  • This bot has all the models in this repository available.
  • It's interactive, overall fast, and easy to use.
  • And lastly, it's open-sourced.

Example:

Text Completion:

import freeGPT
from asyncio import run


async def main():
    while True:
        prompt = input("👦: ")
        try:
            resp = await getattr(freeGPT, "MODEL NAME").Completion.create(prompt)
            print(f"🤖: {resp}")
        except Exception as e:
            print(f"🤖: {e}")


run(main())

Image Generation:

import freeGPT
from PIL import Image
from io import BytesIO
from asyncio import run


async def main():
    while True:
        prompt = input("👦: ")
        try:
            resp = await getattr(freeGPT, "MODEL NAME").Generation.create(prompt)
            Image.open(BytesIO(resp)).show()
            print(f"🤖: Image shown.")
        except Exception as e:
            print(f"🤖: {e}")


run(main())

Star History Chart:

Star History Chart

About

freeGPT is a Python package that gives access to GPT and more models for free.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%