Update example

This commit is contained in:
Zhicheng Zhang
2023-08-15 17:09:23 +08:00
committed by GitHub
parent ee8afd2d62
commit 9431e6cb3a

View File

@@ -174,7 +174,7 @@
" rsp = TextEmbedding.call(model=TextEmbedding.Models.text_embedding_v1,\n",
" input=docs)\n",
" embeddings = [record['embedding'] for record in rsp.output['embeddings']]\n",
" return embeddings if isinstance(news, list) else embeddings[0]"
" return embeddings if isinstance(docs, list) else embeddings[0]"
]
},
{