We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeae64e commit bd206f7Copy full SHA for bd206f7
packages/inference/src/tasks/custom/request.ts
@@ -32,7 +32,7 @@ export async function request<T>(
32
throw new Error(`Server ${args.model} does not seem to support chat completion. Error: ${output.error}`);
33
}
34
if (output.error) {
35
- throw new Error(output.error);
+ throw new Error(JSON.stringify(output.error));
36
37
38
throw new Error("An error occurred while fetching the blob");
0 commit comments