mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-30 06:42:01 +08:00
fix tongyi embedding endpoint return None output (#10857)
This commit is contained in:
parent
ee1f14621a
commit
bd05df5cc5
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user