mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
8 lines
314 B
Python
8 lines
314 B
Python
|
from langchain_community.embeddings.huggingface import HuggingFaceInferenceAPIEmbeddings
|
||
|
|
||
|
|
||
|
def test_hugginggface_inferenceapi_embedding_documents_init() -> None:
|
||
|
"""Test huggingface embeddings."""
|
||
|
embedding = HuggingFaceInferenceAPIEmbeddings(api_key="abcd123")
|
||
|
assert "abcd123" not in repr(embedding)
|