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

Function _model_endpoint

src/webwright/tools/self_reflection.py:239–245  ·  view source on GitHub ↗
(model_client: Any)

Source from the content-addressed store, hash-verified

237
238
239def _model_endpoint(model_client: Any) -> str:
240 config = getattr(model_client, "config", None)
241 for key in ("openai_endpoint", "anthropic_endpoint", "openrouter_endpoint"):
242 value = getattr(config, key, "")
243 if value:
244 return str(value)
245 return ""
246
247
248# ---------------------------------------------------------------------------

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected