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

Method _build_payload

api/gemini_handler.py:73–78  ·  view source on GitHub ↗
(self, request_data: dict, target_model: str)

Source from the content-addressed store, hash-verified

71 }
72
73 def _build_payload(self, request_data: dict, target_model: str) -> dict:
74 payload = dict(request_data)
75 payload["model"] = target_model
76 if target_model in ("gemma-4-26b-a4b-it", "gemma-4-31b-it"):
77 payload.setdefault("extra_body", {}).setdefault("google", {})["thinking_config"] = {"thinking_level": "minimal"}
78 return payload
79
80 async def handle_request(self, request_data: dict):
81 if not self.api_key:

Callers 1

handle_requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected