()
| 85 | |
| 86 | |
| 87 | def openhands_headers() -> dict[str, str]: |
| 88 | api_key = os.environ.get('OPENHANDS_API_KEY') |
| 89 | if not api_key: |
| 90 | raise RuntimeError('OPENHANDS_API_KEY environment variable is required') |
| 91 | return { |
| 92 | 'Authorization': f'Bearer {api_key}', |
| 93 | 'Content-Type': 'application/json', |
| 94 | } |
| 95 | |
| 96 | |
| 97 | def request_json( |
no test coverage detected