Skip to content

Commit 19b599a

Browse files
committed
resolve some comments
1 parent 4f26ed0 commit 19b599a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dev-packages/node-integration-tests/suites/tracing/anthropic/scenario-errors.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ async function run() {
8282
},
8383
],
8484
});
85-
} catch (e) {
85+
} catch {
8686
// Error expected
8787
}
8888

8989
// 2. Test model retrieval error
9090
try {
9191
await client.models.retrieve('nonexistent-model');
92-
} catch (e) {
92+
} catch {
9393
// Error expected
9494
}
9595

dev-packages/node-integration-tests/suites/tracing/anthropic/scenario-stream-errors.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async function run() {
118118
messages: [{ role: 'user', content: 'This will fail immediately' }],
119119
stream: true,
120120
});
121-
} catch (e) {
121+
} catch {
122122
// Error expected
123123
}
124124

@@ -128,7 +128,7 @@ async function run() {
128128
model: 'error-stream-init',
129129
messages: [{ role: 'user', content: 'This will also fail immediately' }],
130130
});
131-
} catch (e) {
131+
} catch {
132132
// Error expected
133133
}
134134

@@ -143,7 +143,7 @@ async function run() {
143143
for await (const _ of stream) {
144144
void _;
145145
}
146-
} catch (e) {
146+
} catch {
147147
// Error expected
148148
}
149149

@@ -157,7 +157,7 @@ async function run() {
157157
for await (const _ of stream) {
158158
void _;
159159
}
160-
} catch (e) {
160+
} catch {
161161
// Error expected
162162
}
163163
});

packages/core/src/utils/anthropic-ai/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export type MessageError = {
3434
type: string;
3535
message: string;
3636
};
37-
request_id?: string;
37+
request_id: string;
3838
};
3939

4040
type SuccessfulResponse = {

0 commit comments

Comments
 (0)