Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

changkun/chat

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chat

ChatGPT in the command line

Usage

$ go install changkun.de/x/chat@latest
$ echo $OPENAI_API_KEY # this should be the OpenAI API key
$ chat

Example

  • Use <Ctrl+D> to terminate user input. (Ctrl+Z + Enter in windows)
  • Use <Ctrl+C> to terminate the chat session.
$ chat
> Hi, I'm a chatbot. How can I help you?
> User: How are you? <Ctrl+D>
> 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

About

ChatGPT in command line

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.