RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: Xinference asr model call (#17283)
Lynn6467df343791
diff --git a/rag/llm/sequence2txt_model.py b/rag/llm/sequence2txt_model.pyindex 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_nameself.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 = audioaudio_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")}