feats:replace GLM-4v authentication headers to support customize api key

This commit is contained in:
Yincmewy
2025-08-08 23:26:29 +08:00
parent 962c40c1a7
commit 15cb2f1a9e
2 changed files with 1 additions and 61 deletions

View File

@@ -54,8 +54,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)
token := getZhipuToken(info.ApiKey)
req.Set("Authorization", token)
req.Set("Authorization", "Bearer "+info.ApiKey)
return nil
}