Skip to main content

No project description provided

Project description

Installation

I recommend using pipx for installation. Follow pipx's documentation to install it, then run pipx install chat-cli.

Building

Chat uses the poetry build tool.

  1. Install poetry
  2. Clone the chat project repo
  3. Run poetry build in the project root
  4. The wheel and sdist will be built in the dist/ directory

Usage

chat [-h] [--apikey APIKEY] [--prompt PROMPT] [--save] [-f CONFIG] [-m MODEL] [--resume] [-s SEARCH]

Options

-h, --help

show these options and exit

--apikey

Specify the API key to use when connection to OpenAI

--prompt

Change the prompt that is displayed for input

--save

If specified with --apikey and/or --prompt, save them to the config file

-f, --config

Specify an alternate file to load the configuration from (Default: $XDG_CONFIG_HOME/Chat/chat.json)

-m, --model

Specify the model to use, refer to https://platform.openai.com/docs/models for list

--resume

Resumes last conversation

-s, --search

Search your chat history for a given regex

Commands

When chating, the following commands perform special actions

.redo

Regenerates the previous response. Removes the old response from the history

.copy

Copies the first code block in the previous response to the system clipboard. Print's whats been copied

.exit

Exits the application and saves the chat history. Same as encountering EOF. Prints the chat log location.

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

chat_cli-0.3.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

chat_cli-0.3.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

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