From 7a0feba9f7f6a2e4277c1303aeaea22d36f5ff82 Mon Sep 17 00:00:00 2001 From: Manjunath Janardhan <35326118+manjunathshiva@users.noreply.github.com> Date: Tue, 2 Jan 2024 06:25:52 +0530 Subject: [PATCH] GITLAB_URL should take default https://gitlab.com instead of error (#14638) The fix #14221 has broken default gitlab url which is forcing the users to specify GITLAB_URL for default one. With this fix if GITLAB_URL is not set, the default gitlab url will be taken. - **Description:** Add the GITHUB URL instead of None - **Issue:** the issue #14221 has broken the default github URL - **Dependencies:** None - **Tag maintainer:** @hwchase17 - **Twitter handle:** manjunath_shiva --- libs/community/langchain_community/utilities/gitlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/community/langchain_community/utilities/gitlab.py b/libs/community/langchain_community/utilities/gitlab.py index 0eb1b40a7dd..d17c1b8e72a 100644 --- a/libs/community/langchain_community/utilities/gitlab.py +++ b/libs/community/langchain_community/utilities/gitlab.py @@ -39,7 +39,7 @@ class GitLabAPIWrapper(BaseModel): """Validate that api key and python package exists in environment.""" gitlab_url = get_from_dict_or_env( - values, "gitlab_url", "GITLAB_URL", default=None + values, "gitlab_url", "GITLAB_URL", default="https://gitlab.com" ) gitlab_repository = get_from_dict_or_env( values, "gitlab_repository", "GITLAB_REPOSITORY"