Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aandrew-me committed Nov 30, 2023
1 parent b87654b commit 4bb17ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ func newRequest(input string, prevMessages string) (*http.Response, error) {
// Setting all the required headers
req.Header.Set("Content-Type", "application/json")
req.Header.Set("authorization", "Bearer pk-this-is-a-real-free-pool-token-for-everyone")
req.Header.Set("Origin", "https://chat.geekgpt.org")
req.Header.Set("Referrer", "https://chat.geekgpt.org/")


// Return response
return (client.Do(req))
Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
tea "github.com/charmbracelet/bubbletea"
)

const localVersion = "2.2.0"
const localVersion = "2.2.1"

var bold = color.New(color.Bold)
var boldBlue = color.New(color.Bold, color.FgBlue)
Expand Down Expand Up @@ -205,7 +205,6 @@ func main() {

boldBlue.Println("\nExamples:")
fmt.Println(`tgpt "What is internet?"`)
fmt.Println("tgpt -f")
fmt.Println(`tgpt -m`)
fmt.Println(`tgpt -s "How to update my system?"`)
} else {
Expand Down

0 comments on commit 4bb17ba

Please sign in to comment.