Skip to content

Commit 72dbb15

Browse files
authored
chore: fix error type (#84)
1 parent ff918aa commit 72dbb15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openrouter-error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { z } from 'zod';
33

44
export const OpenRouterErrorResponseSchema = z.object({
55
error: z.object({
6+
code: z.union([z.string(), z.number()]).nullable(),
67
message: z.string(),
7-
type: z.string(),
8+
type: z.string().nullable(),
89
param: z.any().nullable(),
9-
code: z.string().nullable(),
1010
}),
1111
});
1212

0 commit comments

Comments
 (0)