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 pushing to a remote (a json file + an html gui visualization)
  • 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) html 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 = '^V').

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.4.0.tar.gz (13.2 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.4.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chitgpt-1.4.0.tar.gz
Algorithm Hash digest
SHA256 16e25e98636f9eea22409e0a24dcd1a3e91f8279c4b2b426f3b5b42726a4482a
MD5 617f455dc886ee6652166dfc57fe64de
BLAKE2b-256 b8b4b0e611bd1de2535e4c45f172686556fcdecfba19e8ef2a843453cb8ef7c0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for chitgpt-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f82e1d0f3a4e934d56761c439e39fd4c41200c1c0e9d9cc9405b526df073e6c
MD5 35f4912a289b3973531ed2dfb6180600
BLAKE2b-256 905ea05d2c99554748052acfa2cc09cc0c6a68586d14d990a638a33c04660393

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