litellmlope / litellm /tests /test_get_llm_provider.py
ka1kuk's picture
Upload 235 files
7db0ae4 verified
raw
history blame
392 Bytes
import sys, os
import traceback
from dotenv import load_dotenv
load_dotenv()
import os, io
sys.path.insert(
0, os.path.abspath("../..")
) # Adds the parent directory to the system path
import pytest
import litellm
def test_get_llm_provider():
_, response, _, _ = litellm.get_llm_provider(model="anthropic.claude-v2:1")
assert response == "bedrock"
test_get_llm_provider()