Skip to content

Commit

Permalink
feat: add state parameter to LLMRails stream method
Browse files Browse the repository at this point in the history
  • Loading branch information
Pouyanpi committed Feb 4, 2025
1 parent ca609a0 commit eb91c2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nemoguardrails/rails/llm/llmrails.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ def stream_async(
prompt: Optional[str] = None,
messages: Optional[List[dict]] = None,
options: Optional[Union[dict, GenerationOptions]] = None,
state: Optional[Union[dict, State]] = None,
) -> AsyncIterator[str]:
"""Simplified interface for getting directly the streamed tokens from the LLM."""
streaming_handler = StreamingHandler()
Expand All @@ -951,6 +952,7 @@ def stream_async(
messages=messages,
streaming_handler=streaming_handler,
options=options,
state=state,
)
)
# TODO:
Expand Down

0 comments on commit eb91c2d

Please sign in to comment.