diff --git a/integrations/langchain/src/databricks_langchain/chat_models.py b/integrations/langchain/src/databricks_langchain/chat_models.py index 8a28ddc1..79f2d94e 100644 --- a/integrations/langchain/src/databricks_langchain/chat_models.py +++ b/integrations/langchain/src/databricks_langchain/chat_models.py @@ -256,7 +256,8 @@ def __init__(self, **kwargs: Any): warnings.warn( "Currently, temperature defaults to 0.0 if not specified. " "In the next release, temperature will need to be explicitly set. " - "Please update your code to specify a temperature value.", + "Please update your code to specify a temperature value. " + "Note: If you are using an o1 or o3 model, you need to set temperature=None.", DeprecationWarning, stacklevel=2, )