Skip to content

[Feature Request] Support for Structured output from LLM Node #4033

Open
@LokeshShelva

Description

@LokeshShelva

Is your feature request related to a problem? Please describe.

OpenAI introduced structured output on Aug 2024, which allows user to set a response_format or a schema for the output of the LLM. This enables for more deterministic outputs. Currently prompt flow LLM node supports json mode and not structured outputs.

Describe the solution you'd like

Support for the structured output to be added in the LM node. The output could be a dictionary with the same schema that was provided as input.

Describe alternatives you've considered

Currently i have to create a python function node where i call the LLM using the openai sdk to use the structured output feature.

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