Skip to content

Commit bd206f7

Browse files
authored
fix [Object object] error (#935)
fix [Object object] error
1 parent aeae64e commit bd206f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/inference/src/tasks/custom/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function request<T>(
3232
throw new Error(`Server ${args.model} does not seem to support chat completion. Error: ${output.error}`);
3333
}
3434
if (output.error) {
35-
throw new Error(output.error);
35+
throw new Error(JSON.stringify(output.error));
3636
}
3737
}
3838
throw new Error("An error occurred while fetching the blob");

0 commit comments

Comments
 (0)