Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

modelbit failure logging fix #52

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion wyvern/components/models/modelbit_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down