MCPcopy Create free account
hub / github.com/canarybyte/veridrop / build_headers

Function build_headers

scripts/bai_api_probe.py:117–123  ·  view source on GitHub ↗
(api_key: str, auth: str)

Source from the content-addressed store, hash-verified

115
116
117def build_headers(api_key: str, auth: str) -> dict[str, str]:
118 headers = {"Content-Type": "application/json"}
119 if auth in ("bearer", "both"):
120 headers["Authorization"] = f"Bearer {api_key}"
121 if auth in ("x-api-key", "both"):
122 headers["x-api-key"] = api_key
123 return headers
124
125
126def list_models(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected