Skip to content

Commit

Permalink
fix(parsing): don't validate input tools in the asynchronous `.parse(…
Browse files Browse the repository at this point in the history
…)` method
  • Loading branch information
RobertCraigie committed Jan 27, 2025
1 parent b95be16 commit 6fcfe73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/openai/resources/beta/chat/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def stream(
When the context manager exits, the response will be closed, however the `stream` instance is still available outside
the context manager.
"""
_validate_input_tools(tools)

extra_headers = {
"X-Stainless-Helper-Method": "beta.chat.completions.stream",
**(extra_headers or {}),
Expand Down

0 comments on commit 6fcfe73

Please sign in to comment.