MCPcopy Create free account
hub / github.com/microsoft/Webwright / get_model_class

Function get_model_class

src/webwright/models/__init__.py:15–19  ·  view source on GitHub ↗
(spec: str)

Source from the content-addressed store, hash-verified

13
14
15def get_model_class(spec: str) -> type[Model]:
16 full_path = _MODEL_MAPPING.get(spec, spec)
17 module_name, class_name = full_path.rsplit(".", 1)
18 module = importlib.import_module(module_name)
19 return getattr(module, class_name)
20
21
22def get_model(config: dict, *, default_type: str = "openai") -> Model:

Callers 1

get_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected