mirror of
https://github.com/ollama/ollama-python.git
synced 2026-09-14 23:19:53 +00:00
Merge pull request #145 from jingfelix/fix/async-client-embed-annotation
fix: annotation in AsyncClient.embedding
This commit is contained in:
+1
-1
@@ -474,7 +474,7 @@ class AsyncClient(BaseClient):
|
|||||||
prompt: str = '',
|
prompt: str = '',
|
||||||
options: Optional[Options] = None,
|
options: Optional[Options] = None,
|
||||||
keep_alive: Optional[Union[float, str]] = None,
|
keep_alive: Optional[Union[float, str]] = None,
|
||||||
) -> Sequence[float]:
|
) -> Mapping[str, Sequence[float]]:
|
||||||
response = await self._request(
|
response = await self._request(
|
||||||
'POST',
|
'POST',
|
||||||
'/api/embeddings',
|
'/api/embeddings',
|
||||||
|
|||||||
Reference in New Issue
Block a user