feat: add doubao tts usage token

This commit is contained in:
feitianbubu
2025-10-17 22:06:45 +08:00
parent 1be4e12ca0
commit 0952631fa2
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ func (a *Adaptor) DoRequest(c *gin.Context, info *relaycommon.RelayInfo, request
func (a *Adaptor) DoResponse(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo) (usage any, err *types.NewAPIError) {
if info.RelayMode == constant.RelayModeAudioSpeech {
encoding := mapEncoding(c.GetString("response_format"))
return handleTTSResponse(c, resp, encoding)
return handleTTSResponse(c, resp, info, encoding)
}
adaptor := openai.Adaptor{}