Skip to content

Retrieve output text by Response.output_text() #455

@Dragon-GCS

Description

@Dragon-GCS

Should we extract the output text by a function output_text() replace with output_text field, a sdk only field in python and javascript. The implemention can refer to python sdk: https://github.com/openai/openai-python/blob/main/src/openai/types/responses/response.py#L278, but output_text() as function.

Response api is recommended by openai offically, this field will be very useful for developer to access the output text. I will happy to submit a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions