mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 21:23:44 +08:00
✨ feat: support zhipu new API (#44)
This commit is contained in:
@@ -44,7 +44,7 @@ func getConfig() base.ProviderConfig {
|
||||
|
||||
// 请求错误处理
|
||||
func requestErrorHandle(resp *http.Response) *types.OpenAIError {
|
||||
var baiduError *BaiduError
|
||||
baiduError := &BaiduError{}
|
||||
err := json.NewDecoder(resp.Body).Decode(baiduError)
|
||||
if err != nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user