From fac1ea177f9d4cc45a6ba0dda5259dda39fd8157 Mon Sep 17 00:00:00 2001 From: MT <44970244+tomcsojn@users.noreply.github.com> Date: Fri, 10 Mar 2023 13:37:33 +0100 Subject: [PATCH] use getenv instead of accessing environ obj --- pinecone/core/utils/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinecone/core/utils/constants.py b/pinecone/core/utils/constants.py index ad24b804..5d14696c 100644 --- a/pinecone/core/utils/constants.py +++ b/pinecone/core/utils/constants.py @@ -12,7 +12,7 @@ MAX_MSG_SIZE = 128 * 1024 * 1024 -MAX_ID_LENGTH = int(os.environ.get("PINECONE_MAX_ID_LENGTH", default="64")) +MAX_ID_LENGTH = int(os.getenv("PINECONE_MAX_ID_LENGTH", default="64")) REQUEST_ID: str = "request_id" CLIENT_VERSION_HEADER = 'X-Pinecone-Client-Version'