You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
exportfunctionisUnexpected(response:
|GetAudioTranscriptionSimpleJson200Response|GetAudioTranscriptionSimpleJsonDefaultResponse): response is GetAudioTranscriptionSimpleJsonDefaultResponse;exportfunctionisUnexpected(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
The text was updated successfully, but these errors were encountered:
@minhanh-phan May I know if there is any build failure introduced by missing types? Jose is working on the fix and I'd like to know how to detect these issues in our testing.
@MaryGao Yes, we were trying to generate with the latest commit 8f13627230772d90c8db09636e88b9a26dc73044 from this PR. The sources folder cannot be built because there are error types from missing the isUnexpected overload in the operations.ts file.
The generation
isUnexpected
method is missing multiple overloads. There are 5 different audio formatsjson
,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.The TypeSpec definition of these 5 models for translation task is here
Expected: An overload for each of the interface
Reproduce:
fb4f558b15075826656a3061d332d1a198352dd4
to regenerate for OpenAI packageThe text was updated successfully, but these errors were encountered: