{"repo":"evilpan/gptcli","free":true,"listed":false,"github":"https://github.com/evilpan/gptcli","clone":"git clone https://github.com/evilpan/gptcli.git","description":"ChatGPT in command line with OpenAI API (gpt-3.5-turbo/gpt-4/gpt-4-32k)","language":"Python","stars":279,"topics":["python","terminal","chatgpt","gpt-35-turbo","gpt-4","openai-api"],"license":"GPL-2.0","category":"cli-tools","readme_excerpt":"A simple chat client in single Python script [ ][vid] Setup 1. clone this repo 2. pip3 install -U -r requirements.txt 3. copy demo config.json to conf/config.json 4. get your [OPENAI API KEY][key] and put it in conf/config.json Run Sample config.json : - (required) api key: OpenAI's api key. will read from OPENAI API KEY envronment variable if not set - (optional) base url: OpenAI's api base url. Can set to a server reverse proxy, for example Azure OpenAI Service or chatgptProxyAPI. By default it's from OPENAI API BASE or just ; - (optional) model: LLM chat model, by default it's gpt-3.5-turbo ; - (optional) context: Chat session context, choices are: - 0: no context provided for every chat request, cost least tokens, but AI don't kown what you said before; - 1: only use previous user questions as context; - 2: use both previous questions and answers as context, would cost more tokens; - (optional) stream: Output in stream mode; - (optional) stream render: Render markdown in stream mode, you can disable it to avoid some UI bugs; - (optional) showtokens: Print used tokens after every chat; - (optional) proxy: Use http/https/socks4a/socks5 proxy for requests to api base ; - (optional) prompt: Customize your prompt. This will appear in every chat request; - (optional) model choices: List of available models; Console help (with tab-complete): Run in Docker: Feature - [x] Single Python script - [x] Support any OpenAI-Compatible API and models - [x] Session based - [x] Markdown sup","default_branch":null,"files":null,"tree":[],"storefront":"/r/evilpan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/evilpan/gptcli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}