MCPcopy Create free account
hub / github.com/acking-you/static_flow / build_headers

Function build_headers

scripts/test_llm_gateway_chat.py:41–48  ·  view source on GitHub ↗

Build the minimum headers required by the gateway.

(api_key: str, conversation_id: str | None)

Source from the content-addressed store, hash-verified

39
40
41def build_headers(api_key: str, conversation_id: str | None) -> dict[str, str]:
42 """Build the minimum headers required by the gateway."""
43 headers = {
44 "Authorization": f"Bearer {api_key}",
45 }
46 if conversation_id:
47 headers["conversation_id"] = conversation_id
48 return headers
49
50
51def build_chat_payload(

Callers 1

build_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected