Skip to content

Commit

Permalink
fix tongyi embedding endpoint return None output (#10857)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong authored Nov 19, 2024
1 parent ee1f146 commit bd05df5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def _invoke(
)

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(
Expand Down

0 comments on commit bd05df5

Please sign in to comment.