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

Method _request_headers

src/webwright/models/openai_model.py:119–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 _DEFAULT_CONFIG_CLASS = OpenAIModelConfig
118
119 def _request_headers(self) -> dict[str, str]:
120 return {
121 "Content-Type": "application/json",
122 "Authorization": f"Bearer {self.config.openai_api_key}",
123 }
124
125 def _post_url(self) -> str:
126 return self.config.openai_endpoint

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected