diff --git a/pyproject.toml b/pyproject.toml index 99a98d6..40382a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "reait" -version = "1.2.4" +version = "1.2.5" readme = "README.md" classifiers=[ "Programming Language :: Python :: 3", diff --git a/src/reait/api.py b/src/reait/api.py index e461632..6360bad 100755 --- a/src/reait/api.py +++ b/src/reait/api.py @@ -15,7 +15,7 @@ from requests import request, Response, HTTPError from sklearn.metrics.pairwise import cosine_similarity -__version__ = "1.2.4" +__version__ = "1.2.5" re_conf = { "apikey": environ.get("REAI_API_KEY", ""), @@ -1202,6 +1202,12 @@ def RE_models() -> Response: res.raise_for_status() return res +def RE_models_v2() -> Response: + res: Response = reveng_req(requests.get, "v2/models") + + res.raise_for_status() + return res + # NOTE: newest API as per documentation still using /v1/ prefix def RE_functions_dump(function_ids: list[int]) -> Response: