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

Method _headers

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

Source from the content-addressed store, hash-verified

52 logger.info("GeminiAPIHandler registered models: %s", [m["name"] for m in self.models])
53
54 def _headers(self):
55 return {
56 "Content-Type": "application/json",
57 "Authorization": f"Bearer {self.api_key}",
58 "User-Agent": "ObserverAI-FastAPI-Client/1.0",
59 }
60
61 def _build_payload(self, request_data: dict, target_model: str) -> dict:
62 payload = dict(request_data)

Callers 2

handle_requestMethod · 0.95
_stream_responseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected