Skip to main content

A terminal based chat application that works with local language models.

Project description

Charla: Terminal-Based Chat Application with Ollama Backend Integration

PyPI - Version PyPI - Python Version

Charla is a terminal based chat application that integrates with Ollama, a backend designed to serve language models. To use Charla, ensure that the ollama server is running and at least one language model is installed.

Installation

Install Charla using pipx:

pipx install charla

Usage

Launch the chat console by typing charla in your terminal, or view all available command line options with charla -h.

Features

  • Terminal-based chat system that supports context aware conversations using local language models.
  • Chat sessions are saved as markdown files in the user's documents directory when ending a chat.
  • Prompt history is saved and previously entered prompts are auto-suggested.
  • Mode switching between single-line and multi-line input without interruption to your chat session.

Development

Run the command-line interface directly from the project source without installing the package:

python -m charla.cli

ollama API

Installed models:

curl http://localhost:11434/api/tags

Model info:

curl http://localhost:11434/api/show -d '{"name": "phi3"}'

License

Charla is distributed under the terms of the MIT license.

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

charla-1.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

charla-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file charla-1.0.0.tar.gz.

File metadata

  • Download URL: charla-1.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for charla-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5d63ebb8dc97b6ae1bce5fd57d1e2404731c5148f3ddb561b26db6f2be8e46ba
MD5 7bae05755117365563d08151db156d27
BLAKE2b-256 6725017b2cc758ba3bb9dead3e63e3b3a602cc301ffd8c06b1ae62150167be2b

See more details on using hashes here.

File details

Details for the file charla-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: charla-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for charla-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed4066ede449ba038c57406aaa600d982e1017c64665894ec9a20fee0ce03c81
MD5 21b19c85255a4b9ef264f428ec7bc224
BLAKE2b-256 0f27b2c8e2a9b3c69575383262bc8352c1e675441e2cae1597af2c42927e9833

See more details on using hashes here.

Supported by

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