mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 02:46:52 +08:00
fix tongyi embedding endpoint return None output (#10857)
This commit is contained in:
@@ -65,6 +65,8 @@ class GTERerankModel(RerankModel):
|
||||
)
|
||||
|
||||
rerank_documents = []
|
||||
if not response.output:
|
||||
return RerankResult(model=model, docs=rerank_documents)
|
||||
for _, result in enumerate(response.output.results):
|
||||
# format document
|
||||
rerank_document = RerankDocument(
|
||||
|
||||
Reference in New Issue
Block a user