Skip to content

Commit bb1f35b

Browse files
author
Zoo (VP)
committed
test(lm-studio): expect RequestOptions arg in native-tools assertions
1 parent c88c40e commit bb1f35b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/api/providers/__tests__/lmstudio-native-tools.spec.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ describe("LmStudioHandler Native Tools", () => {
7979
}),
8080
]),
8181
}),
82+
// RequestOptions carries the forwarded task abortSignal (undefined when no metadata.signal).
83+
{},
8284
)
8385
// parallel_tool_calls should be true by default when not explicitly set
8486
const callArgs = mockCreate.mock.calls[0][0]
@@ -101,6 +103,8 @@ describe("LmStudioHandler Native Tools", () => {
101103
expect.objectContaining({
102104
tool_choice: "auto",
103105
}),
106+
// RequestOptions carries the forwarded task abortSignal (undefined when no metadata.signal).
107+
{},
104108
)
105109
})
106110

@@ -202,6 +206,8 @@ describe("LmStudioHandler Native Tools", () => {
202206
expect.objectContaining({
203207
parallel_tool_calls: true,
204208
}),
209+
// RequestOptions carries the forwarded task abortSignal (undefined when no metadata.signal).
210+
{},
205211
)
206212
})
207213

0 commit comments

Comments
 (0)