Skip to content

Commit

Permalink
Merge branch 'harrison/move-core' of github.com:langchain-ai/langchai…
Browse files Browse the repository at this point in the history
…n into harrison/move-core
  • Loading branch information
baskaryan committed Nov 20, 2023
2 parents d141f63 + 5723685 commit 63761ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
10 changes: 0 additions & 10 deletions libs/core/langchain_core/utils/openai.py

This file was deleted.

11 changes: 9 additions & 2 deletions libs/langchain/langchain/utils/openai.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
from langchain_core.utils.openai import is_openai_v1
from __future__ import annotations

__all__ = ["is_openai_v1"]
from importlib.metadata import version

from packaging.version import parse


def is_openai_v1() -> bool:
_version = parse(version("openai"))
return _version.major >= 1

0 comments on commit 63761ff

Please sign in to comment.