MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / _build_openai_headers

Method _build_openai_headers

datastudio/models/openai_api.py:128–136  ·  view source on GitHub ↗

Build HTTP headers using instance API key. Overrides BaseAPI._build_openai_headers to use self.key directly. Returns: Headers dict with Content-Type and optional Authorization.

(self)

Source from the content-addressed store, hash-verified

126 )
127
128 def _build_openai_headers(self) -> dict:
129 """Build HTTP headers using instance API key.
130
131 Overrides BaseAPI._build_openai_headers to use self.key directly.
132
133 Returns:
134 Headers dict with Content-Type and optional Authorization.
135 """
136 return super()._build_openai_headers(self.key)
137
138 # Sampling parameter names managed explicitly (used by _build_payload)
139 _SAMPLING_PARAM_KEYS = (

Callers 2

generate_innerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected