https://github.com/changkun/chat
ChatGPT in command line
https://github.com/changkun/chat
Last synced: 9 months ago
JSON representation
ChatGPT in command line
- Host: GitHub
- URL: https://github.com/changkun/chat
- Owner: changkun
- License: mit
- Created: 2023-03-05T15:22:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-17T14:29:16.000Z (almost 3 years ago)
- Last Synced: 2025-04-01T08:11:37.987Z (10 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chat
ChatGPT in the command line
## Usage
```bash
$ go install changkun.de/x/chat@latest
$ echo $OPENAI_API_KEY # this should be the OpenAI API key
$ chat
```
## Example
- Use `` to terminate user input. (`Ctrl+Z` + `Enter` in windows)
- Use `` to terminate the chat session.
```
$ chat
> Hi, I'm a chatbot. How can I help you?
> User: How are you?
> Assistant: As an AI language model, I don't have feelings, emotions, or physical experiences. But thank you for asking! How can I assist you today?
> User:
```
## License
MIT