open_ai: Fix parallel tools issue (#30467)

Adrian Furo , Peter Tripp , and Ben Brandt created

There is no ISSUE opened on this topic

Release Notes:

- N/A

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>

Change summary

crates/open_ai/src/open_ai.rs | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

Detailed changes

crates/open_ai/src/open_ai.rs 🔗

@@ -205,10 +205,8 @@ impl Model {
             | Self::FourOmniMini
             | Self::FourPointOne
             | Self::FourPointOneMini
-            | Self::FourPointOneNano
-            | Self::O1
-            | Self::O1Preview
-            | Self::O1Mini => true,
+            | Self::FourPointOneNano => true,
+            Self::O1 | Self::O1Preview | Self::O1Mini => false,
             _ => false,
         }
     }