From 6fcfe73cd335853c7dd2cd3151a0d5d1785cfc9c Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Mon, 27 Jan 2025 19:20:32 +0000 Subject: [PATCH] fix(parsing): don't validate input tools in the asynchronous `.parse()` method --- src/openai/resources/beta/chat/completions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openai/resources/beta/chat/completions.py b/src/openai/resources/beta/chat/completions.py index 48cb13f7a6..7771d2ff50 100644 --- a/src/openai/resources/beta/chat/completions.py +++ b/src/openai/resources/beta/chat/completions.py @@ -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 {}),