Skip to content

Commit

Permalink
Fix leo properly not responding
Browse files Browse the repository at this point in the history
  • Loading branch information
aandrew-me committed Jan 6, 2024
1 parent df6f6af commit 15ef816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/olekukonko/ts"
)

const localVersion = "2.3.1"
const localVersion = "2.3.2"

var bold = color.New(color.Bold)
var boldBlue = color.New(color.Bold, color.FgBlue)
Expand Down
1 change: 1 addition & 0 deletions providers/leo/leo.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func NewRequest(input string, params structs.Params) (*http.Response, error) {
req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-brave-key", key)
req.Header.Set("accept", "text/event-stream")
req.Header.Set("accept-language", "en-US,en;q=0.9")
req.Header.Set("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36")

// Return response
Expand Down

0 comments on commit 15ef816

Please sign in to comment.