Skip to content

Commit b088227

Browse files
authored
1 parent 83b38c2 commit b088227

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/inference/src/utils/request.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ export async function* innerStreamingRequest<T>(
9191
/// OpenAI errors
9292
throw new Error(output.error.message);
9393
}
94+
// Sambanova errors
95+
if (typeof output.message === "string") {
96+
throw new Error(output.message);
97+
}
9498
}
9599

96100
throw new Error(`Server response contains error: ${response.status}`);

0 commit comments

Comments
 (0)