Simple interactive console language client for OpenAI API language models.
Important
API Key not included
- Easy language model selection
- Read local files (Check Token limitations for large files)
- git
- python >= 3.11
For termux you will also need to install:
- rust
- binutils
pip install git+https://github.com/jmriddell/langclient.git#main
langclient [--api-key-file <api-key-file> | --api-key <api-key>]
Api key file should contain a single line with the api key.
If api key not provided in any way, the program will prompt for it.
At startup select the model to interact.
[?] Select a model:
> gpt-3.5-turbo-0125
gpt-4-turbo-2024-04-09
gpt-4
gpt-4-32k
Check the pricing cuotas and usage dashboard.
Files can be included in the sending message to the api using angle brackts.
You:
Write a short description of the <readme.md> file
Assistant:
The readme.md file provides a brief overview of the langclient, a simple interactive console language client for OpenAI API language models. It includes information on installation prerequisites and instructions, as well as guidance on usage, model selection, and inputting local files. The file also emphasizes the importance of not including the API key. Links to relevant documentation and resources are also provided.
Works with subdirectories and names with spaces like <subfolder/name with spaces.txt>
.