Merge pull request #145 from jingfelix/fix/async-client-embed-annotation

fix: annotation in AsyncClient.embedding
This commit is contained in:
Michael Yang
2024-05-08 13:10:28 -07:00
committed by GitHub

View File

@@ -474,7 +474,7 @@ class AsyncClient(BaseClient):
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',