修复多路复用bug

This commit is contained in:
CaIon
2023-08-31 00:44:16 +08:00
parent d9d5b001a7
commit fe94656260
5 changed files with 42 additions and 8 deletions

View File

@@ -205,7 +205,7 @@ func Relay(c *gin.Context) {
})
}
channelId := c.GetInt("channel_id")
common.SysError(fmt.Sprintf("relay error (channel #%d): %s", channelId, err.Message))
common.SysError(fmt.Sprintf("relay error (channel #%d): %v ", channelId, err))
// https://platform.openai.com/docs/guides/error-codes/api-errors
if shouldDisableChannel(&err.OpenAIError) {
channelId := c.GetInt("channel_id")
@@ -259,7 +259,7 @@ func RelayMidjourney(c *gin.Context) {
// channelId := c.GetInt("channel_id")
// channelName := c.GetString("channel_name")
// disableChannel(channelId, channelName, err.Result)
//}
//};''''''''''''''''''''''''''''''''
}
}