fix: Fix Ollama channel authentication

This commit is contained in:
Coming 2025-02-20 00:52:30 +08:00 committed by GitHub
parent 1f6cb4bd5d
commit 368b5fbaa1

View File

@ -39,6 +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)
return nil
}