This is a simple chatbot based on chatgpt, currently we use gpt-3.5-turbo model. and we interacts ChatGPT with the API with Go client library.
Currently you can get started with this chatbot by building from sources.
Compiler Go 1.20+, checking the Go Installation to see how to install Go on your platform.
Use make to build and produce the chatboat binary file. The executable file will be placed in the build/bin directory.
makeCreate a configuration file (e.g. $PWD/config.yaml) using the configuration template file at resources/config.yaml.
The following simple configuration example can be used to get started:
openai:
token: "YOUR_API_KEY"You can fetch API key from your OpenAI account .
You can run the chatbot by executing the following command:
./build/bin/chatbot -f config.yaml-fconfiguration file. It also can be achieved by setting the environment variableCHATBOT_CONFIG.
