mirror of
https://github.com/hwchase17/langchain
synced 2024-11-20 03:25:56 +00:00
32da0a4d71
**Description** `embed_with_retry` is for sync operations and not for async operations. Use `async_embed_with_retry` for appropriate async operations. I'm using `OpenAIEmbedding(http_client=httpx.AsyncClient())` with only async operations. However, I got an error when I use `embedding.aembed_documents` because `embed_with_retry` uses sync OpenAI client with async http client. |
||
---|---|---|
.. | ||
cli | ||
core | ||
experimental | ||
langchain |