We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cdb64b commit 448c93fCopy full SHA for 448c93f
2 files changed
src/helpers.ts
@@ -172,6 +172,7 @@ export function serializeErrorResponse(response: ErrorResponse): string {
172
error: {
173
message: response.error.message,
174
type: response.error.type ?? "server_error",
175
+ param: response.error.param ?? null,
176
code: response.error.code ?? null,
177
},
178
});
src/types.ts
@@ -165,7 +165,7 @@ export interface ContentWithToolCallsResponse extends ResponseOverrides {
165
}
166
167
export interface ErrorResponse {
168
- error: { message: string; type?: string; code?: string };
+ error: { message: string; type?: string; param?: string | null; code?: string };
169
status?: number;
170
171
0 commit comments