Skip to content

Commit 9f676bc

Browse files
author
Theodore Li
committed
Restore original behavior for hugging face
1 parent 540aa18 commit 9f676bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/tools/huggingface/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const chatTool: ToolConfig<HuggingFaceChatParams, HuggingFaceChatResponse
162162
output: {
163163
content: data.choices?.[0]?.message?.content || '',
164164
model: data.model || 'unknown',
165-
usage: data.usage ?? undefined,
165+
usage: data.usage ?? { prompt_tokens: 0, completion_tokens: 0, total_tokens: 0 },
166166
},
167167
}
168168
},

0 commit comments

Comments
 (0)