Skip to content

fix(api) Responses API GetStreaming method #660

Description

@soslanco

The (*ResponseService) GetStreaming method does not work.

In the file responses/response.go, in the GetStreaming method, a typo needs to be fixed:

- opts = append(opts, option.WithJSONSet("stream", true))
+ opts = append(opts, option.WithQuery("stream", "true"))

GetStreaming calls the /responses/{response_id} endpoint using the GET method, so instead of setting the parameter in the request body, it should be set in the query string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneratorIssue concerns the SDK generator or generated-code patterns.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions