Skip to content

Commit

Permalink
fix: Correct Ollama channel authentication header setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Feb 19, 2025
1 parent 6e0046f commit 60aac77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay/channel/ollama/adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {

func (a *Adaptor) SetupRequestHeader(c *gin.Context, req *http.Header, info *relaycommon.RelayInfo) error {
channel.SetupApiRequestHeader(info, c, req)
header.Set("Authorization", "Bearer "+info.ApiKey)
req.Set("Authorization", "Bearer "+info.ApiKey)
return nil
}

Expand Down

0 comments on commit 60aac77

Please sign in to comment.