Skip to content

Commit

Permalink
Formatted to pass the make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rawathemant246 committed Feb 2, 2025
1 parent 3cd0c8a commit e30afb0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libs/community/langchain_community/chat_models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,19 +367,19 @@ def validate_environment(cls, values: Dict) -> Dict:
def _default_params(self) -> Dict[str, Any]:
"""
Get the default parameters for calling OpenAI API.
Reasoning models (o3-mini, o1, o1-mini, o1-preview) does not support adjusting the
temperature parameter.
Reasoning models (o3-mini, o1, o1-mini, o1-preview) does not support adjusting
the temperature parameter.
"""
params = {
"model": self.model_name,
"stream": self.streaming,
"n": self.n,
**self.model_kwargs,
}
o1_reasoning_model = ["o3-mini", "o1", "o1-mini","o1-preview"]
o1_reasoning_model = ["o3-mini", "o1", "o1-mini", "o1-preview"]
if self.model_name not in o1_reasoning_model and self.temperature is not None:
params["temperature"] = self.temperature
if self.max_tokens is not None:
Expand Down

0 comments on commit e30afb0

Please sign in to comment.