You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nemoguardrails/rails/llm/config.py
+5-13Lines changed: 5 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@
25
25
frompydanticimport (
26
26
BaseModel,
27
27
ConfigDict,
28
-
ValidationError,
28
+
Field,
29
29
model_validator,
30
30
root_validator,
31
31
validator,
@@ -77,7 +77,7 @@ class ReasoningModelConfig(BaseModel):
77
77
)
78
78
remove_thinking_traces: Optional[bool] =Field(
79
79
default=None,
80
-
description="[DEPRECATED] Use remove_reasoning_traces instead. For reasoning models (e.g. DeepSeek-r1), if the output parser should remove thinking traces.",
80
+
deprecated="The `remove_thinking_traces` field is deprecated use remove_reasoning_traces instead.",
81
81
)
82
82
start_token: Optional[str] =Field(
83
83
default="<think>",
@@ -89,17 +89,9 @@ class ReasoningModelConfig(BaseModel):
0 commit comments