From ef5e7d8c448a5c8a22efce0a8e98cd1502641571 Mon Sep 17 00:00:00 2001 From: Stephen Hu Date: Fri, 20 Jun 2025 11:13:00 +0800 Subject: [PATCH] Fix:embedding_model class SILICONFLOWEmbed(Base)Function reusing json (#8378) ### What problem does this PR solve? https://github.com/infiniflow/ragflow/issues/8360 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/llm/embedding_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/llm/embedding_model.py b/rag/llm/embedding_model.py index b9a40bbd0..25cbc5250 100644 --- a/rag/llm/embedding_model.py +++ b/rag/llm/embedding_model.py @@ -762,7 +762,7 @@ class SILICONFLOWEmbed(Base): "input": text, "encoding_format": "float", } - response = requests.post(self.base_url, json=payload, headers=self.headers).json() + response = requests.post(self.base_url, json=payload, headers=self.headers) try: res = response.json() return np.array(res["data"][0]["embedding"]), self.total_token_count(res)