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 615c348 commit f19cc09Copy full SHA for f19cc09
packages/inference/src/utils/request.ts
@@ -43,8 +43,8 @@ export async function innerRequest<T>(
43
`Server ${args.model} does not seem to support chat completion. Error: ${JSON.stringify(output.error)}`
44
);
45
}
46
- if (output.error || output.detail) {
47
- throw new Error(JSON.stringify(output.error ?? output.detail));
+ if (output.error || output.detail || output.message) {
+ throw new Error(JSON.stringify(output.error ?? output.detail ?? output.message));
48
} else {
49
throw new Error(output);
50
0 commit comments