mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-18 02:16:07 +00:00
fix: update invoke_embedding to return only embeddings from client.embed (#1619)
This commit is contained in:
@@ -139,8 +139,8 @@ class OllamaChatCompletions(requester.ProviderAPIRequester):
|
|||||||
input_text: list[str],
|
input_text: list[str],
|
||||||
extra_args: dict[str, typing.Any] = {},
|
extra_args: dict[str, typing.Any] = {},
|
||||||
) -> list[list[float]]:
|
) -> list[list[float]]:
|
||||||
return await self.client.embed(
|
return (await self.client.embed(
|
||||||
model=model.model_entity.name,
|
model=model.model_entity.name,
|
||||||
input=input_text,
|
input=input_text,
|
||||||
**extra_args,
|
**extra_args,
|
||||||
)
|
)).embeddings
|
||||||
|
|||||||
Reference in New Issue
Block a user