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)
| 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 = ( |
no outgoing calls
no test coverage detected