From cefd422647cff2b61154b9a554de284682882adc Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Fri, 8 Sep 2023 16:15:14 -0700 Subject: [PATCH] modelbit failure logging fix (#52) --- wyvern/components/models/modelbit_component.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wyvern/components/models/modelbit_component.py b/wyvern/components/models/modelbit_component.py index 3134fb4..92d60c5 100644 --- a/wyvern/components/models/modelbit_component.py +++ b/wyvern/components/models/modelbit_component.py @@ -135,7 +135,8 @@ async def inference(self, input: MODEL_INPUT, **kwargs) -> MODEL_OUTPUT: for batch_idx, resp in enumerate(responses): if resp.status != 200: - logger.warning(f"Modelbit inference failed: {resp.text}") + text = await resp.text() + logger.warning(f"Modelbit inference failed: {text}") continue resp_list: List[List[Union[float, str, List[float], None]]] = ( await resp.json()