mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 12:01:54 +00:00
community: Use Blockbuster to detect blocking calls in asyncio during tests (#29609)
Same as https://github.com/langchain-ai/langchain/pull/29043 for langchain-community. **Dependencies:** - blockbuster (test) **Twitter handle:** cbornet_ Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
3a57a28daa
commit
30f6c9f5c8
@@ -1,10 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import functools
|
||||
from importlib.metadata import version
|
||||
|
||||
from packaging.version import parse
|
||||
|
||||
|
||||
@functools.cache
|
||||
def is_openai_v1() -> bool:
|
||||
"""Return whether OpenAI API is v1 or more."""
|
||||
_version = parse(version("openai"))
|
||||
|
Reference in New Issue
Block a user