Skip to content

Commit

Permalink
fix [Object object] error (#935)
Browse files Browse the repository at this point in the history
fix [Object object] error
  • Loading branch information
friuns2 authored Sep 29, 2024
1 parent aeae64e commit bd206f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/inference/src/tasks/custom/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function request<T>(
throw new Error(`Server ${args.model} does not seem to support chat completion. Error: ${output.error}`);
}
if (output.error) {
throw new Error(output.error);
throw new Error(JSON.stringify(output.error));
}
}
throw new Error("An error occurred while fetching the blob");
Expand Down

0 comments on commit bd206f7

Please sign in to comment.