fix: stt模型计费

This commit is contained in:
CalciumIon
2024-11-25 19:31:59 +08:00
parent b71e33b095
commit 7ebc1cfb60
2 changed files with 4 additions and 6 deletions

View File

@@ -45,6 +45,10 @@ func getAndValidAudioRequest(c *gin.Context, info *relaycommon.RelayInfo) (*dto.
if audioRequest.Model == "" {
return nil, errors.New("model is required")
}
audioRequest.ResponseFormat = formData.Get("response_format")
if audioRequest.ResponseFormat == "" {
audioRequest.ResponseFormat = "json"
}
}
return audioRequest, nil
}