Skip to content

Commit 44972c9

Browse files
fix: move hasUsedForcedTool declaration before function
1 parent 9c71f8a commit 44972c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/sim/providers/litellm/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export const litellmProvider: ProviderConfig = {
271271

272272
const forcedTools = preparedTools?.forcedTools || []
273273
let usedForcedTools: string[] = []
274+
let hasUsedForcedTool = false
274275

275276
const checkForForcedToolUsage = (
276277
response: any,
@@ -313,8 +314,6 @@ export const litellmProvider: ProviderConfig = {
313314
let modelTime = firstResponseTime
314315
let toolsTime = 0
315316

316-
let hasUsedForcedTool = false
317-
318317
const timeSegments: TimeSegment[] = [
319318
{
320319
type: 'model',

0 commit comments

Comments
 (0)