(self, request_data: dict, target_model: str)
| 59 | } |
| 60 | |
| 61 | def _build_payload(self, request_data: dict, target_model: str) -> dict: |
| 62 | payload = dict(request_data) |
| 63 | payload["model"] = target_model |
| 64 | return payload |
| 65 | |
| 66 | async def handle_request(self, request_data: dict): |
| 67 | if not self.api_key: |