Skip to content

Commit c38a28b

Browse files
committed
Add tests - wip
1 parent c61801b commit c38a28b

File tree

2 files changed

+2348
-6
lines changed

2 files changed

+2348
-6
lines changed

plugins/qualifire/globals.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ export const postQualifire = async (
3838
};
3939

4040
const result = await post(BASE_URL, body, options, timeout_millis || 10000);
41-
42-
console.log('********************************');
43-
console.log('result', result);
44-
console.log('********************************');
45-
4641
const error = result?.error || null;
4742
const verdict = result.status === 'success';
4843
const data = result.evaluationResults;
@@ -122,7 +117,7 @@ export const convertToMessages = (
122117
return {
123118
role: role,
124119
content: content,
125-
tool_calls: message.tool_calls ?? undefined,
120+
tool_calls: convertToolCalls(message.tool_calls) ?? undefined,
126121
tool_call_id: message.tool_call_id ?? undefined,
127122
};
128123
});

0 commit comments

Comments
 (0)