Skip to content

Commit

Permalink
Fix issue with python 3.8 compatibility - part 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
drazvan committed Jul 24, 2024
1 parent 7aabad5 commit cd01fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nemoguardrails/library/patronusai/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import logging
import re
from typing import List, Optional, Tuple
from typing import List, Optional, Tuple, Union

from langchain.llms.base import BaseLLM

Expand All @@ -32,7 +32,7 @@

def parse_patronus_lynx_response(
response: str,
) -> Tuple[bool, List[str] | None]:
) -> Tuple[bool, Union[List[str], None]]:
"""
Parses the response from the Patronus Lynx LLM and returns a tuple of:
- Whether the response is hallucinated or not.
Expand Down

0 comments on commit cd01fda

Please sign in to comment.