fix tongyi embedding endpoint return None output (#10857)

pull/10871/head
Jyong 1 year ago committed by GitHub
parent ee1f14621a
commit bd05df5cc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save