MCPcopy Index your code
hub / github.com/microsoft/Webwright / get_model

Function get_model

src/webwright/models/__init__.py:22–25  ·  view source on GitHub ↗
(config: dict, *, default_type: str = "openai")

Source from the content-addressed store, hash-verified

20
21
22def get_model(config: dict, *, default_type: str = "openai") -> Model:
23 copied = copy.deepcopy(config)
24 model_class = copied.pop("model_class", default_type)
25 return get_model_class(model_class)(**copied)

Callers 2

load_tool_modelFunction · 0.90
run_oneFunction · 0.90

Calls 1

get_model_classFunction · 0.85

Tested by

no test coverage detected