Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit e2d0a5a

Browse files
committed
rm magic tool number
1 parent 8601d04 commit e2d0a5a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/models/openai.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -704,12 +704,6 @@ export class OpenAIModel implements Model<OpenAIModelConfig, ClientOptions> {
704704
continue
705705
}
706706

707-
// Validate index is non-negative and reasonable
708-
if (toolCall.index < 0 || toolCall.index > 100) {
709-
console.warn(`Received tool call with out-of-range index: ${toolCall.index}`, toolCall)
710-
continue
711-
}
712-
713707
// If tool call has id and name, it's the start of a new tool call
714708
if (toolCall.id && toolCall.function?.name) {
715709
events.push({

0 commit comments

Comments
 (0)