MCPcopy
hub / github.com/huggingface/smolagents / test_load_model_litellm_model

Function test_load_model_litellm_model

tests/test_cli.py:26–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def test_load_model_litellm_model():
27 model = load_model("LiteLLMModel", "test_model_id", api_key="test_api_key", api_base="https://api.test.com")
28 assert isinstance(model, LiteLLMModel)
29 assert model.api_key == "test_api_key"
30 assert model.api_base == "https://api.test.com"
31 assert model.model_id == "test_model_id"
32
33
34def test_load_model_transformers_model():

Callers

nothing calls this directly

Calls 1

load_modelFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…