Skip to content

Commit

Permalink
fix: Update toolChoice and tools handling in Observability AI Assista…
Browse files Browse the repository at this point in the history
…nt client tests
  • Loading branch information
arturoliduena committed Dec 12, 2024
1 parent b255b5d commit fd69535
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ describe('Observability AI Assistant client', () => {
{ role: 'user', content: 'How many alerts do I have?' },
]),
functionCalling: 'native',
toolChoice: 'auto',
tools: {},
toolChoice: undefined,
tools: undefined,
},
]);
});
Expand Down Expand Up @@ -1373,7 +1373,7 @@ describe('Observability AI Assistant client', () => {

expect(Object.keys(firstBody.tools ?? {}).length).toEqual(1);

expect(body.tools).toEqual({});
expect(body.tools).toEqual(undefined);
});
});

Expand Down

0 comments on commit fd69535

Please sign in to comment.