From 6467df343791529d4619ad37db7abfe4ef77982b Mon Sep 17 00:00:00 2001 From: Lynn Date: Thu, 23 Jul 2026 15:57:45 +0800 Subject: [PATCH] Fix: Xinference asr model call (#17283) --- rag/llm/sequence2txt_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rag/llm/sequence2txt_model.py b/rag/llm/sequence2txt_model.py index 46a820c9e1..6957fb961a 100644 --- a/rag/llm/sequence2txt_model.py +++ b/rag/llm/sequence2txt_model.py @@ -332,7 +332,7 @@ class XinferenceSeq2txt(Base): self.model_name = model_name self.key = key - def transcription(self, audio, language="zh", prompt=None, response_format="json", temperature=0.7): + def transcription(self, audio, language="zh", prompt=None, response_format="json"): if isinstance(audio, str): with open(audio, "rb") as audio_file: audio_data = audio_file.read() @@ -341,7 +341,7 @@ class XinferenceSeq2txt(Base): audio_data = audio audio_file_name = "audio.wav" - payload = {"model": self.model_name, "language": language, "prompt": prompt, "response_format": response_format, "temperature": temperature} + payload = {"model": self.model_name, "language": language, "prompt": prompt, "response_format": response_format} files = {"file": (audio_file_name, audio_data, "audio/wav")}