Skip to content

Commit 0801b56

Browse files
committed
remove bad test
1 parent 6b6bb8b commit 0801b56

File tree

2 files changed

+75
-177
lines changed

2 files changed

+75
-177
lines changed

tests/lib/tools/BetaToolRunnerE2E.test.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -316,36 +316,4 @@ describe('toolRunner integration tests', () => {
316316
expect(['blue', 'black', 'gray', 'grey']).toContain(color); // ai is bad at colours apparently
317317
});
318318
});
319-
320-
it('top level non-object schemas throw', async () => {
321-
// At least for now, openai does not support non-object schemas at top level
322-
const runner = client.beta.chat.completions.toolRunner({
323-
model: 'gpt-4o',
324-
max_tokens: 1000,
325-
max_iterations: 5,
326-
messages: [
327-
{
328-
role: 'user',
329-
content:
330-
'Use the array_tool with the array ["hello", "world"], then provide a final response that includes the word \'foo\'.',
331-
},
332-
],
333-
tools: [
334-
betaZodFunctionTool({
335-
name: 'array_tool',
336-
description: 'Tool for array operations',
337-
parameters: z.array(z.string()).describe('Array of strings'),
338-
run: async (input: string[]) => {
339-
return input.map((item) => item.toUpperCase()).join(', ');
340-
},
341-
}),
342-
],
343-
});
344-
await expect(async () => {
345-
const messages = [];
346-
for await (const message of runner) {
347-
messages.push(message);
348-
}
349-
}).rejects.toThrow();
350-
});
351319
});

0 commit comments

Comments
 (0)