MCPcopy Create free account
hub / github.com/Roy3838/Observer / _headers

Method _headers

api/gemini_handler.py:66–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 logger.info("GeminiAPIHandler registered models: %s", [m["name"] for m in self.models])
65
66 def _headers(self):
67 return {
68 "Content-Type": "application/json",
69 "Authorization": f"Bearer {self.api_key}",
70 "User-Agent": "ObserverAI-FastAPI-Client/1.0",
71 }
72
73 def _build_payload(self, request_data: dict, target_model: str) -> dict:
74 payload = dict(request_data)

Callers 2

handle_requestMethod · 0.95
_stream_responseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected