add new error type

This commit is contained in:
2025-03-13 14:04:06 -07:00
parent 29fa401714
commit aa701237ff
2 changed files with 12 additions and 1 deletions

View File

@@ -104,7 +104,7 @@ func (c *Client) ConvertSpeechToTextFromReader(ctx context.Context, reader io.Re
case 422:
fallthrough
default:
ve := types.ValidationError{}
ve := types.ParamError{}
defer res.Body.Close()
jerr := json.NewDecoder(res.Body).Decode(&ve)
if jerr != nil {