From 985a982148ded8838a0376751b20b98d86c9a68a Mon Sep 17 00:00:00 2001 From: Debanjum Date: Tue, 10 Jun 2025 19:40:57 -0700 Subject: [PATCH] Update openai package to stream response by non-reasoning models Older package (like 1.84.0) seem to always pass reasoning_effort argument to openai api, which now seems to be throwing unexpected request argument error when used with non-reasoning models (like 4o-mini). --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 24e05cee..6d86fe37 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ dependencies = [ "fastapi >= 0.110.0", "python-multipart >= 0.0.7", "jinja2 == 3.1.6", - "openai >= 1.0.0", + "openai >= 1.86.0", "tiktoken >= 0.3.2", "tenacity >= 9.0.0", "magika ~= 0.5.1",