Skip to main content

GPTChatMate v1.10.3

A python cli front-end for the chatGPT API.

Installation

Note: This app requires sqlite3 version >3.35.0.

pip install gpt-chat-mate

Configuration

Running the app for the first time will produce a .config.json file locally with default config options.

db_filename - the filename to use for the sqlite database.

gpt_model - which GPT model to use for the chat.

print_style - the pygments style to use for the GPT output.

token_limit - the limit on the number of tokens that the app will send in a single API call. Note: the user will still be shown the full conversation history even if the token limits the conversation sent to the API.

openai_req_timeout - The OpenAI API request can sometimes hang for an insane amount of time, so this sets a timeout. The default is 60.

default_editor - The editor to use for things like editing an existing system prompt. The default is vim.

editor_on_paste - Edit all multiline prompts using an editor instead of the command line. Defaults to false because it may not work on all systems.

Usage

Install via pip, and run via the package name.

gpt-chat-mate

Commands

chat optional[<ID>] - Start a new chat or continue an existing one by providing the ID.

delete <ID> - Delete an existing chat.

list,ls - List existing chats stored in the database.

duplicate <ID> - duplicates a chat with just the system prompt. (Does not duplicate the whole chat)

rename <ID> optional[<name>] - rename a chat. If <name> is not given, chatGPT is used to rename it.

esp <ID> - (e)dit (s)ystem (p)rompt allows you to edit the system prompt of a chat. (This has only been tested on a unix system).

help - List available commands.

exit - Exit the program.

Special Prompt Keywords

paste - You can use the paste command as a prompt to enter paste mode. Paste mode allows you to freely type or paste many lines of text as a prompt. You then use EOF to indicate that you want to submit the prompt.

Metadata

Release files for gpt-chat-mate 1.10.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpt-chat-mate 1.10.3
File Size Uploaded
gpt-chat-mate-1.10.3.tar.gz 20.6 kB Details

Release files / gpt-chat-mate-1.10.3.tar.gz

Download URL gpt-chat-mate-1.10.3.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2b4632115dcde69fefd129598557ac84fc76bb2c37ee562005c035c9af7ce8c4
BLAKE2b-256 checksum
How to use checksums
c5b0346ae6176aa54003278701f768aa88ad782664112fefa638225b7ddc0e1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release history Release notifications | RSS feed

This release

1.10.3 This release

1 release file

1.10.2

1 release file

1.10.1

1 release file

1.10.0

1 release file

1.9.0

1 release file

1.8.0

1 release file

1.7.2

1 release file

1.7.1

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page