def inference_request() -> InferenceRequest: payload_path = os.path.join(TESTDATA_PATH, "inference-request.json") return InferenceRequest.parse_file(payload_path)
def inference_request(model_settings: ModelSettings) -> InferenceRequest: payload_path = os.path.join(TESTDATA_PATH, "inference-request.json") inference_request = InferenceRequest.parse_file(payload_path) return codec_middleware(inference_request, model_settings)