MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / openhands_headers

Function openhands_headers

scripts/issue_good_first_issue_check_openhands.py:87–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85
86
87def 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
97def request_json(

Callers 4

start_conversationFunction · 0.70
poll_start_taskFunction · 0.70
poll_conversationFunction · 0.70
fetch_app_server_eventsFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected