Skip to content

passing include keyword argument to beta.threads.runs.stream function leads to openai.BadRequestError #1938

Closed
@vitorarrais

Description

@vitorarrais

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

passing include keyword argument to beta.threads.runs.stream function leads to

openai.BadRequestError: Error code: 400 - {'error': {'message': "Unknown parameter: 'include'.", 'type': 'invalid_request_error', 'param': 'include', 'code': 'unknown_parameter'}}

To Reproduce

client.beta.threads.runs.stream(
                thread_id=thread.id,
                assistant_id=assistant.id,
                include=["step_details.tool_calls[*].file_search.results[*].content"],
)

Code snippets

No response

OS

macOS

Python version

Python v3.11.5

Library version

openai v1.57.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions