Skip to main content

Add your description here

Project description

chit

chit is a git-analogous system for managing LLM chat conversations in a Jupyter notebook. Install as pip install chitgpt.

The chit.Chat class has methods:

  • commit() for adding new messages (either user or assistant). For creating an assistant message, the message path leading up to the current checked-out message is sent to the LLM.
  • branch() for creating a new branch at the current checked-out message
  • checkout() for changing the checkout message.
  • push() for dumping data to a json file we call the remote
  • clone() a classmethod for initializing a chit.Chat object from a json file
  • sensible indexing and slicing
  • rm() for removing a branch or commit
  • mv() for renaming a branch
  • find() for finding in conversation history
  • log() for creating simple tree or forum style visualizations of the chat
  • gui() for creating a (non-interactive) gui output of the conversation similar to a classic LLM interface

We use litellm for the LLM completions, so use their model naming conventions. Vision is supported, including images from the clipboard like so: chat.commit("user", "Analyze this image.", image_path = 'CB').

See example.ipynb for some demonstration, as well as example2.ipynb where we re-clone an earlier chat and play with it.

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

chitgpt-1.3.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chitgpt-1.3.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file chitgpt-1.3.0.tar.gz.

File metadata

  • Download URL: chitgpt-1.3.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for chitgpt-1.3.0.tar.gz
Algorithm Hash digest
SHA256 4472b2bcb5f5399516fce3c793df3a00b551d9864dc09babe2a98b0fd20053b0
MD5 627c377f226934d165d70d41bf9d0ecd
BLAKE2b-256 689fe099a14140422df25358f83a2a513c744b3aa3f701cfe1d70d879fb4ed99

See more details on using hashes here.

File details

Details for the file chitgpt-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: chitgpt-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for chitgpt-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25e3b2f542940b2e16df29a54faa919dd5204837ae1bb268bca0ebae75bbb957
MD5 cf847dd423649f5c8efd468b3aa76b7e
BLAKE2b-256 9127ba78c4b593d31bc539c2c52573f66508f7aaf7066788cb65f612bedd44b4

See more details on using hashes here.

Supported by

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