Skip to content

Commit ef5e7d8

Browse files
authored
Fix:embedding_model class SILICONFLOWEmbed(Base)Function reusing json (infiniflow#8378)
### What problem does this PR solve? infiniflow#8360 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
1 parent 80f1f27 commit ef5e7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rag/llm/embedding_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ def encode_queries(self, text):
762762
"input": text,
763763
"encoding_format": "float",
764764
}
765-
response = requests.post(self.base_url, json=payload, headers=self.headers).json()
765+
response = requests.post(self.base_url, json=payload, headers=self.headers)
766766
try:
767767
res = response.json()
768768
return np.array(res["data"][0]["embedding"]), self.total_token_count(res)

0 commit comments

Comments
 (0)