mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 05:03:44 +08:00
🎨 Change the method of getting channel parameters
This commit is contained in:
@@ -49,7 +49,7 @@ func (p *ZhipuProvider) GetFullRequestURL(requestURL string, modelName string) s
|
||||
}
|
||||
|
||||
func (p *ZhipuProvider) getZhipuToken() string {
|
||||
apikey := p.Context.GetString("api_key")
|
||||
apikey := p.Channel.Key
|
||||
data, ok := zhipuTokens.Load(apikey)
|
||||
if ok {
|
||||
tokenData := data.(zhipuTokenData)
|
||||
|
||||
Reference in New Issue
Block a user