Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
vitorarrais opened this issue Dec 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@vitorarrais
Copy link

vitorarrais commented Dec 12, 2024

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

@vitorarrais vitorarrais added the bug Something isn't working label Dec 12, 2024
@RobertCraigie
Copy link
Collaborator

Thanks for the report, this will be fixed in v1.57.5.

@vitorarrais
Copy link
Author

No worries. That's great to hear that will get fixed soon 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants