Skip to content

Commit bbb4c68

Browse files
committed
agent pause
1 parent f5d90a1 commit bbb4c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/global/core/chat/adapt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export const chats2GPTMessages = ({
137137
const hasTools = Array.isArray(value.tools) && value.tools.length > 0;
138138

139139
if (reserveTool && (hasTools || value.tool)) {
140-
const tools = hasTools ? value.tools : [value.tool!];
140+
const tools = hasTools ? value.tools! : [value.tool!];
141141
const tool_calls: ChatCompletionMessageToolCall[] = [];
142142
const toolResponse: ChatCompletionToolMessageParam[] = [];
143143
tools.forEach((tool) => {

0 commit comments

Comments
 (0)