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 hashes)
Built Distribution
voai-0.0.4-py3-none-any.whl
(6.9 kB
view hashes)