Fusedon / Llama2

A better, simpler, and faster version of nathanrchn's PerplexityAI.

Home Page:https://pypi.org/project/perplexityai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyPI Downloads Status

perplexityai

A better, simpler, and faster version of nathanrchn's PerplexityAI.

Get started:

python -m pip install -U perplexityai

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

Support this repository:

  • ⭐ Star the project: Star this repository. It means a lot to me! πŸ’•
  • πŸŽ‰ Join my Discord Server: Chat with me and others. Join here:

DiscordWidget

Example:

import perplexityai
from asyncio import run


async def main():
    while True:
        prompt = input("πŸ‘¦: ")
        try:
            resp = await perplexityai.Completion().create(prompt)
            print(f"πŸ€–: {resp}")
        except Exception as e:
            print(f"πŸ€–: {e}")


run(main())

About

A better, simpler, and faster version of nathanrchn's PerplexityAI.

https://pypi.org/project/perplexityai

License:GNU General Public License v2.0


Languages

Language:Python 100.0%