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 fromGPT35Turbo
- Added
new_chat
method forGPT35Turbo
to createGPT35TurboChat
instance, now to useask_with_context
you need to create it - Added
ask
method forGPT35TurboChat
is same asask_with_context
ofGPT35Turbo
in v0.0.3 - Added
clear
method forGPT35TurboChat
which clears whole chat - Added
regenerate
method forGPT35TurboChat
which regenerates response using index of context array returned byget_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)
Built Distribution
voai-0.0.4-py3-none-any.whl
(6.9 kB
view details)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
aa8f876ccb7cadcb49d027c9b989669909175d2d0666bb1c93e7bb8f8ca158e0
|
|
MD5 |
f559050a80d1178013291b3d5059fc43
|
|
BLAKE2b-256 |
35cece8cfc3002efe480f032f0715e7c79d44febb2ead94c1f2d9b68d586c091
|
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e2bea04c004d1d47a34dae3da5862b00bc64556408f12056df7937ee59c0535f
|
|
MD5 |
ef8e26d427165b3d3de365c372664f6b
|
|
BLAKE2b-256 |
b491771620b1eb4e82a432967f73cd888c4fbfbd23295633320ce8c3405006e9
|