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
  • mv() for moving a branch
  • find() for finding in conversation history
  • log() for creating simple tree or forum style visualizations of the chat
  • viz() 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.2.0.tar.gz (12.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.2.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chitgpt-1.2.0.tar.gz
Algorithm Hash digest
SHA256 af3bfbfb747a784cde7d2b46464e045571a85c2ea59582c2296e8b5c8ef5ef14
MD5 b3c7e0a36556e53c42538e52e5955b99
BLAKE2b-256 1903711b038e9e7f8fd47053b936456a01ec48284d822731236f84d5175892d9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for chitgpt-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e20edfa209f201677856e45ee6eab4d7028499bc9a9098352cda4d24760128e2
MD5 3d7be2b8d7dd0c89aa0cfaf9fea0add1
BLAKE2b-256 37e945f96beee18c0e01600188142653cc596cca44b33eb891973d1ca8e11e3f

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