mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-15 04:33:42 +08:00
🎨 Change the method of getting channel parameters
This commit is contained in:
@@ -52,7 +52,7 @@ func (p *TencentProvider) parseTencentConfig(config string) (appId int64, secret
|
||||
}
|
||||
|
||||
func (p *TencentProvider) getTencentSign(req TencentChatRequest) string {
|
||||
apiKey := p.Context.GetString("api_key")
|
||||
apiKey := p.Channel.Key
|
||||
appId, secretId, secretKey, err := p.parseTencentConfig(apiKey)
|
||||
if err != nil {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user