From 253b9ff4e17e398f4efa2ea0cb550c0e3b82397f Mon Sep 17 00:00:00 2001 From: hyper-clova Date: Thu, 29 Aug 2024 16:39:51 +0900 Subject: [PATCH] fix: change alias of api_key --- libs/community/tests/unit_tests/chat_models/test_naver.py | 2 +- libs/community/tests/unit_tests/embeddings/test_naver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/community/tests/unit_tests/chat_models/test_naver.py b/libs/community/tests/unit_tests/chat_models/test_naver.py index 4f9e367c65bbbe..bb6cc6c9def9b5 100644 --- a/libs/community/tests/unit_tests/chat_models/test_naver.py +++ b/libs/community/tests/unit_tests/chat_models/test_naver.py @@ -25,7 +25,7 @@ def test_initialization_api_key() -> None: """Test chat model initialization.""" - chat_model = ChatClovaX(clovastudio_api_key="foo", apigw_api_key="bar") + chat_model = ChatClovaX(api_key="foo", apigw_api_key="bar") assert ( cast(SecretStr, chat_model.ncp_clovastudio_api_key).get_secret_value() == "foo" ) diff --git a/libs/community/tests/unit_tests/embeddings/test_naver.py b/libs/community/tests/unit_tests/embeddings/test_naver.py index 7b99daee6fdd46..ca2a54f7563fa5 100644 --- a/libs/community/tests/unit_tests/embeddings/test_naver.py +++ b/libs/community/tests/unit_tests/embeddings/test_naver.py @@ -13,6 +13,6 @@ def test_initialization_api_key() -> None: - llm = ClovaXEmbeddings(clovastudio_api_key="foo", apigw_api_key="bar") + llm = ClovaXEmbeddings(api_key="foo", apigw_api_key="bar") assert cast(SecretStr, llm.ncp_clovastudio_api_key).get_secret_value() == "foo" assert cast(SecretStr, llm.ncp_apigw_api_key).get_secret_value() == "bar"