mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-14 12:23:41 +08:00
🎨 Change the method of getting channel parameters
This commit is contained in:
@@ -29,7 +29,7 @@ type PalmProvider struct {
|
||||
func (p *PalmProvider) GetRequestHeaders() (headers map[string]string) {
|
||||
headers = make(map[string]string)
|
||||
p.CommonRequestHeaders(headers)
|
||||
headers["x-goog-api-key"] = p.Context.GetString("api_key")
|
||||
headers["x-goog-api-key"] = p.Channel.Key
|
||||
|
||||
return headers
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user