VoAI v0.0.4 - tool designed for working with ChatGPT API
Change log
- Removed
ask_with_contextmethod fromGPT35Turbo - Added
new_chatmethod forGPT35Turboto createGPT35TurboChatinstance, now to useask_with_contextyou need to create it - Added
askmethod forGPT35TurboChatis same asask_with_contextofGPT35Turboin v0.0.3 - Added
clearmethod forGPT35TurboChatwhich clears whole chat - Added
regeneratemethod forGPT35TurboChatwhich regenerates response using index of context array returned byget_contextmethod 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
Release files for voai 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| voai-0.0.4.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| voai-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / voai-0.0.4.tar.gz
| Download URL | voai-0.0.4.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa8f876ccb7cadcb49d027c9b989669909175d2d0666bb1c93e7bb8f8ca158e0
|
|
BLAKE2b-256 checksum How to use checksums |
35cece8cfc3002efe480f032f0715e7c79d44febb2ead94c1f2d9b68d586c091
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / voai-0.0.4-py3-none-any.whl
| Download URL | voai-0.0.4-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2bea04c004d1d47a34dae3da5862b00bc64556408f12056df7937ee59c0535f
|
|
BLAKE2b-256 checksum How to use checksums |
b491771620b1eb4e82a432967f73cd888c4fbfbd23295633320ce8c3405006e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|