fix(core): preserve structured error messages (#33530)
This commit is contained in:
@@ -212,6 +212,7 @@ describe("SessionRunnerModel", () => {
|
||||
modelID: "test-model",
|
||||
variant: "unknown",
|
||||
})
|
||||
expect(failure.message).toBe("Variant unavailable for test-provider/test-model: unknown")
|
||||
}),
|
||||
)
|
||||
|
||||
@@ -328,6 +329,7 @@ describe("SessionRunnerModel", () => {
|
||||
modelID: "test-model",
|
||||
api: "aisdk:@ai-sdk/google",
|
||||
})
|
||||
expect(failure.message).toBe("Unsupported API for test-provider/test-model: aisdk:@ai-sdk/google")
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user