From 2dd0ce30776d7d51ab4b61de714c32fa2e629173 Mon Sep 17 00:00:00 2001 From: Hankyeol Kyung Date: Thu, 20 Feb 2025 23:03:42 +0900 Subject: [PATCH] openai: Update reasoning_effort arg documentation (#29897) **Description:** Update docstring for `reasoning_effort` argument to specify that it applies to reasoning models only (e.g., OpenAI o1 and o3-mini), clarifying its supported models. **Issue:** None **Dependencies:** None --- libs/partners/openai/langchain_openai/chat_models/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/partners/openai/langchain_openai/chat_models/base.py b/libs/partners/openai/langchain_openai/chat_models/base.py index 6640110d36c..2d580d08ccd 100644 --- a/libs/partners/openai/langchain_openai/chat_models/base.py +++ b/libs/partners/openai/langchain_openai/chat_models/base.py @@ -439,7 +439,7 @@ class BaseChatOpenAI(BaseChatModel): reasoning_effort: Optional[str] = None """Constrains effort on reasoning for reasoning models. - o1 models only. + Reasoning models only, like OpenAI o1 and o3-mini. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.