Skip to main content

A tool designed for working with 🧑‍💻ChatGPT API🧑‍💻

Project description

VoAI v0.0.4 - tool designed for working with ChatGPT API

Change log

  • Removed ask_with_context method from GPT35Turbo
  • Added new_chat method for GPT35Turbo to create GPT35TurboChat instance, now to use ask_with_context you need to create it
  • Added ask method for GPT35TurboChat is same as ask_with_context of GPT35Turbo in v0.0.3
  • Added clear method for GPT35TurboChat which clears whole chat
  • Added regenerate method for GPT35TurboChat which regenerates response using index of context array returned by get_context method of the same struct

Usage

# here is cli example of chat gpt api
import voai

KEY = "your-api-key"

gpt = voai.GPT35Turbo(KEY)
chat = gpt.new_chat()
while True:
    query = input("> ")

    response = chat.ask(query)
    print(response)

Using libraries

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

voai-0.0.4.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

voai-0.0.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file voai-0.0.4.tar.gz.

File metadata

  • Download URL: voai-0.0.4.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for voai-0.0.4.tar.gz
Algorithm Hash digest
SHA256 aa8f876ccb7cadcb49d027c9b989669909175d2d0666bb1c93e7bb8f8ca158e0
MD5 f559050a80d1178013291b3d5059fc43
BLAKE2b-256 35cece8cfc3002efe480f032f0715e7c79d44febb2ead94c1f2d9b68d586c091

See more details on using hashes here.

File details

Details for the file voai-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: voai-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for voai-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e2bea04c004d1d47a34dae3da5862b00bc64556408f12056df7937ee59c0535f
MD5 ef8e26d427165b3d3de365c372664f6b
BLAKE2b-256 b491771620b1eb4e82a432967f73cd888c4fbfbd23295633320ce8c3405006e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page