[Bugfix][Frontend] Return transcription and translation verbose as float (#49073)

Signed-off-by: Lucas Christian <lucaschgf7@gmail.com>
This commit is contained in:
christian
2026-07-29 13:16:13 +00:00
committed by GitHub
parent 242c591d5a
commit e0cfa52d22
3 changed files with 4 additions and 4 deletions
@@ -644,7 +644,7 @@ class SpeechToTextBaseServing(GenerateBaseServing):
TranscriptionResponseVerbose(
text=text,
language=request.language,
duration=str(duration_s),
duration=duration_s,
segments=total_segments,
),
)
@@ -658,7 +658,7 @@ class SpeechToTextBaseServing(GenerateBaseServing):
TranslationResponseVerbose(
text=text,
language=request.language,
duration=str(duration_s),
duration=duration_s,
segments=total_segments,
),
)
@@ -384,7 +384,7 @@ class TranscriptionSegment(OpenAIBaseModel):
class TranscriptionResponseVerbose(OpenAIBaseModel):
duration: str
duration: float
"""The duration of the input audio."""
language: str
@@ -357,7 +357,7 @@ class TranslationSegment(OpenAIBaseModel):
class TranslationResponseVerbose(OpenAIBaseModel):
duration: str
duration: float
"""The duration of the input audio."""
language: str