chat

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 7 Imported by: 0

README

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.
  • 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL