Skip to content

ChatCompletionMessageToolCallChunk is missing streamed custom tool calls #576

Open

Description

@markstuart-oai

Source reports

Current specification gap

Affected surface: POST /chat/completions stream; ChatCompletionMessageToolCallChunk.

The source reports non-streaming custom-tool types but function-only streaming DeltaToolCall; its follow-up reports custom data arriving as an untyped dict. The current public chunk type enum contains only function and has no custom property. Please reconcile the stream schema with custom-tool deltas for models that support custom tools. The source discussion includes conflicting capability claims for different models; this report does not assert that every Chat Completions model supports custom tools.

Specification reviewed at b61ced9.

Minimal shape

{
  "index": 0,
  "id": "call_example",
  "type": "custom",
  "custom": {
    "name": "tool_name",
    "input": "partial input"
  }
}

This is a sanitized illustration of the reported shape, not a new live API capture.

Expected reconciliation

Represent streamed custom tool-call deltas with their discriminator and name/input fields while retaining function tool deltas and incremental field optionality.

Verification scope

Reviewed the source reports, relevant comments, and current published schema. No new live API request was made. This mirrors the specification gap and preserves the original reproduction; it does not claim that a fix has shipped.

Activity

  1. added
    bugSomething isn't working
    specificationOpenAPI contract, authored schema, or specification publication defects.
    documentationImprovements or additions to documentation
    on Sep 6, 2026
  2. added
    reproReproduced; investigation details recorded in Linear
    on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationreproReproduced; investigation details recorded in LinearspecificationOpenAPI contract, authored schema, or specification publication defects.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions