This commit is contained in:
2025-12-29 14:42:33 +08:00
parent 9f636d1c31
commit 8c4491b383
9 changed files with 37 additions and 50 deletions

View File

@@ -41,6 +41,9 @@ def chunks_embedding(texts: list[str], api_key: str) -> list[list[float]]:
def main(text: str, api_key: str):
vector = chunks_embedding([text], api_key)[0]
return {
'vector': vector
'vector': {
'vector': vector
}
}