Repository navigation
fix(types): normalize Kie transcription result envelopes - #8824
Merged
diegosouzapw merged 1 commit intoJul 28, 2026
Merged
diegosouzapw merged 1 commit into
diegosouzapw merged 1 commit into
Conversation
backryun
force-pushed
the
chore/ts7-types-kie-transcription
branch
from
July 28, 2026 03:27
7bd295f to
57764f5
Compare
diegosouzapw
merged commit Jul 28, 2026
2f5e185
into
cheaper-inference:release/v3.8.49
14 of 16 checks passed
Merged
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
response.text→resultText→ nestedtext→ top-leveltextfallback order.Why
KieExecutor.pollTask()returns a generic JSON object whose nested values remainunknown.The transcription handler read those nested values directly, producing three TS2339 diagnostics
under both TypeScript 6 and native TypeScript 7. It could also return a non-string value when an
earlier field had an unexpected shape.
Impact
The request and successful-response shapes are unchanged. Kie speech-to-text responses now
guarantee a string
textvalue and continue to a later supported envelope when an earlier valueis malformed.
Validation
release/v3.8.49atb4776a2d8with a complete line-number-agnostic diagnostic diff:check:file-size, T11 any-budget, Prettier, andgit diff --checkpassingTracking: #8484