Closed
Description
The generation isUnexpected
method is missing multiple overloads. There are 5 different audio formats json
, verbose_json
, vrt
, stt
, text for translation and transcription task, but only 1 format
json` is generated.
The generated isUnexpected
method for audio tasks is here.
export function isUnexpected(
response:
| GetAudioTranscriptionSimpleJson200Response
| GetAudioTranscriptionSimpleJsonDefaultResponse
): response is GetAudioTranscriptionSimpleJsonDefaultResponse;
export function isUnexpected(
response:
| GetAudioTranslationSimpleJson200Response
| GetAudioTranslationSimpleJsonDefaultResponse
): response is GetAudioTranslationSimpleJsonDefaultResponse;
The TypeSpec definition of these 5 models for translation task is here
Expected: An overload for each of the interface
Reproduce:
- Use the latest commit
fb4f558b15075826656a3061d332d1a198352dd4
to regenerate for OpenAI package