langchain/libs/partners/nvidia-ai-endpoints/tests/unit_tests/test_chat_models.py

17 lines
406 B
Python
Raw Normal View History

"""Test chat model integration."""
from langchain_nvidia_ai_endpoints.chat_models import ChatNVIDIA
def test_integration_initialization() -> None:
"""Test chat model initialization."""
ChatNVIDIA(
model="llama2_13b",
nvidia_api_key="nvapi-...",
temperature=0.5,
top_p=0.9,
max_tokens=50,
)
ChatNVIDIA(model="mistral", nvidia_api_key="nvapi-...")