Skip to content

fix(openai-compatible): buffer no-index tool call deltas - #15879

Closed
slegarraga wants to merge 3 commits into
vercel:mainfrom
slegarraga:fix/openai-compatible-missing-index-delayed-tool-name
Closed

slegarraga wants to merge 3 commits into
vercel:mainfrom
slegarraga:fix/openai-compatible-missing-index-delayed-tool-name

Conversation

@slegarraga

@slegarraga slegarraga commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Context

Fixes #5885.

This is a follow-up to the existing fixes for optional tool_calls[].index (#7240) and delayed function.name (#14760). The combined shape still failed because no-index deltas bypassed the pending-name buffer and went directly to StreamingToolCallTracker, which rejects a new tool call before function.name is available.

Verification

  • pnpm --filter @ai-sdk/openai-compatible test:node -- src/chat/openai-compatible-chat-language-model.test.ts
  • pnpm --filter @ai-sdk/openai-compatible test:edge -- src/chat/openai-compatible-chat-language-model.test.ts
  • pnpm --filter @ai-sdk/openai-compatible type-check

@gr2m

gr2m commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

closed via #7240

@gr2m gr2m closed this Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Functional calling is not working from meta/llama-3.3-70b from sglang framework

2 participants