Skip to content

Commit

Permalink
fix: change alias of api_key
Browse files Browse the repository at this point in the history
  • Loading branch information
hyper-clova committed Aug 30, 2024
1 parent ca4938a commit 79edab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/community/tests/unit_tests/chat_models/test_naver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion libs/community/tests/unit_tests/embeddings/test_naver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 79edab0

Please sign in to comment.