Skip to content

Commit

Permalink
Merge pull request #145 from jingfelix/fix/async-client-embed-annotation
Browse files Browse the repository at this point in the history
fix: annotation in AsyncClient.embedding
  • Loading branch information
mxyng authored May 8, 2024
2 parents 8b91188 + 2ac751f commit cc1fca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ollama/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ async def embeddings(
prompt: str = '',
options: Optional[Options] = None,
keep_alive: Optional[Union[float, str]] = None,
) -> Sequence[float]:
) -> Mapping[str, Sequence[float]]:
response = await self._request(
'POST',
'/api/embeddings',
Expand Down

0 comments on commit cc1fca0

Please sign in to comment.