Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
fix askOpenAI()
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Aug 15, 2023
1 parent 7b1c351 commit 6b99a4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openai/chatgpt.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func askOpenAI(openaiApiKey string, systemPrompt string, temperature float64, co
}

chatRequest.Header.Set("Authorization", fmt.Sprintf("Bearer %v", openaiApiKey))
chatRequest.Header.Set("Content-Type", "application/json; CHARSET=UTF-8")

httpClient := &http.Client{}

Expand Down

0 comments on commit 6b99a4e

Please sign in to comment.