diff --git a/Makefile b/Makefile index d5df5a9..989ba1b 100644 --- a/Makefile +++ b/Makefile @@ -5,14 +5,17 @@ go-gpt: @go get . build: - @go build -o bin/go-gpt cmd/go_gpt.go + @go build -o bin/go-gpt cmd/go_gpt/go_gpt.go # Generate build for cross-compilation go-build-win: - @GOOS=windows GOARCH=amd64 go build -o bin/go-gpt cmd/go_gpt.go + @GOOS=windows GOARCH=amd64 go build -o bin/go-gpt cmd/go_gpt/go_gpt.go go-build-linux: - @GOOS=linux GOARCH=amd64 go build -o bin/linux/go-gpt cmd/go_gpt.go + @GOOS=linux GOARCH=amd64 go build -o bin/linux/go-gpt cmd/go_gpt/go_gpt.go + +go-build-mac: + @GOOS=darwin GOARCH=amd64 go build -o bin/macos/go-gpt cmd/go_gpt/go_gpt.go tidy: ## add missing and remove unused modules go mod tidy diff --git a/README.md b/README.md index 4d89fc8..dd76ccd 100644 --- a/README.md +++ b/README.md @@ -57,9 +57,9 @@ To view logs from the Docker container, use the following command: ## 🏗️ Features to work on -- [ ] Print the response in typing manner -- [ ] Loader for during response generation process -- [ ] Maintain `.go-gpt` just like `.git` to maintain the chats histories and responses. +- [ ] Token Streaming Over CLI +- [ ] Implement a loading indicator during response generation. +- [ ] Add a `.go-gpt` history file to maintain chat histories and responses. ## 😉 Author diff --git a/response.json b/response.json index 3bdd76c..2a89260 100644 --- a/response.json +++ b/response.json @@ -1 +1 @@ -{"id":"chatcmpl-72LS3m5QtOqJCDExtUye065AdFHLG","object":"chat.completion","created":1680793471,"model":"gpt-3.5-turbo-0301","usage":{"prompt_tokens":9,"completion_tokens":9,"total_tokens":18},"choices":[{"message":{"role":"assistant","content":"Hello! How can I assist you today?"},"finish_reason":"stop","index":0}]} \ No newline at end of file +{"message":"Too Many Requests"} \ No newline at end of file diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..fb6a125 --- /dev/null +++ b/setup.sh @@ -0,0 +1,9 @@ + + +sudo cp ./bin/go_gpt /usr/local/bin + + +# or +cd go-gpt +export PATH="$PWD/bin/go_gpt" +source ~/.bashrc