Skip to content

Commit 078e1d7

Browse files
committed
deprecate streaming field in RailsConfig
1 parent 40abc9c commit 078e1d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nemoguardrails/rails/llm/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,12 @@ class RailsConfig(BaseModel):
13731373
description="Configuration for the various rails (input, output, etc.).",
13741374
)
13751375

1376+
streaming: bool = Field(
1377+
default=False,
1378+
deprecated="The 'streaming' field is no longer required. Use stream_async() method directly instead. This field will be removed in a future version.",
1379+
description="DEPRECATED: Use stream_async() method instead. This field is ignored.",
1380+
)
1381+
13761382
enable_rails_exceptions: bool = Field(
13771383
default=False,
13781384
description="If set, the pre-defined guardrails raise exceptions instead of returning pre-defined messages.",

0 commit comments

Comments
 (0)