MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / get_provider_from_model

Function get_provider_from_model

src/harness/llms/client.py:81–83  ·  view source on GitHub ↗

Extract provider from model name.

(model: str)

Source from the content-addressed store, hash-verified

79
80
81def get_provider_from_model(model: str) -> str:
82 """Extract provider from model name."""
83 return normalize_model_name(model).split("/")[0]
84
85
86class LLMClient:

Callers 1

completionMethod · 0.85

Calls 1

normalize_model_nameFunction · 0.85

Tested by

no test coverage detected