Skip to content

Question about Tool Call Streaming #326

Open
@Lightblues

Description

@Lightblues

I found that OpenAIChatCompletionsModel can only stream out text, but cannot stream out tool_call deltas. But I think streaming is an important feature for application that need instant responses.

There is a comment in the code that "Because we don't know the name of the function until the end of the stream, we'll save everything and yield events at the end", but I don't understand it. Could you clarify the reason why we cannot just yield ResponseFunctionCallArgumentsDeltaEvent (openai.types.responses.response_function_call_arguments_delta_event) in ChatCompletions API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions