@@ -22,7 +22,7 @@ Declare supported languages and capabilities:
2222 import torch
2323 from torch import nn
2424
25- from vllm.config import ModelConfig , SpeechToTextConfig
25+ from vllm.config import RendererConfig , SpeechToTextConfig
2626 from vllm.inputs.data import PromptType
2727 from vllm.model_executor.models.interfaces import SupportsTranscription
2828
@@ -52,7 +52,7 @@ This is for controlling general behavior of the API when serving your model:
5252 @classmethod
5353 def get_speech_to_text_config(
5454 cls,
55- model_config: ModelConfig ,
55+ renderer_config: RendererConfig ,
5656 task_type: Literal["transcribe", "translate"],
5757 ) -> SpeechToTextConfig:
5858 return SpeechToTextConfig(
@@ -83,7 +83,7 @@ Return a dict containing `multi_modal_data` with the audio, and either a `prompt
8383 cls,
8484 audio: np.ndarray,
8585 stt_config: SpeechToTextConfig,
86- model_config: ModelConfig ,
86+ renderer_config: RendererConfig ,
8787 language: str | None,
8888 task_type: Literal["transcribe", "translate"],
8989 request_prompt: str,
@@ -120,7 +120,7 @@ Return a dict with separate `encoder_prompt` and `decoder_prompt` entries:
120120 cls,
121121 audio: np.ndarray,
122122 stt_config: SpeechToTextConfig,
123- model_config: ModelConfig ,
123+ renderer_config: RendererConfig ,
124124 language: str | None,
125125 task_type: Literal["transcribe", "translate"],
126126 request_prompt: str,
@@ -183,7 +183,7 @@ Provide a fast duration→token estimate to improve streaming usage statistics:
183183 cls,
184184 audio_duration_s: float,
185185 stt_config: SpeechToTextConfig,
186- model_config: ModelConfig ,
186+ renderer_config: RendererConfig ,
187187 ) -> int | None:
188188 # Return None if unknown; otherwise return an estimate.
189189 return int(audio_duration_s * stt_config.sample_rate // 320) # example
@@ -216,7 +216,7 @@ Relevant server logic:
216216 prompt = self.model_cls.get_generation_prompt(
217217 audio=chunk,
218218 stt_config=self.asr_config,
219- model_config =self.model_config ,
219+ renderer_config =self.renderer_config ,
220220 language=language,
221221 task_type=self.task_type,
222222 request_prompt=request.prompt,
0 commit comments