-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SK-1749: Merge branch 'release/24.11.1' into SK-1731-fix-inconsistencies
- Loading branch information
Showing
11 changed files
with
25 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SDK_VERSION = '1.15.1.dev0+ddb228b' | ||
SDK_VERSION = '1.15.1.dev0+64a3f1a' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
from enum import Enum | ||
from skyflow.generated.rest import RedactionEnumREDACTION | ||
|
||
|
||
class Redaction: | ||
@staticmethod | ||
def to_redaction_enum(value): | ||
if value == "plain-text": | ||
return RedactionEnumREDACTION.PLAIN_TEXT | ||
elif value == "masked": | ||
return RedactionEnumREDACTION.MASKED | ||
elif value == "default": | ||
return RedactionEnumREDACTION.DEFAULT | ||
elif value == "redacted": | ||
return RedactionEnumREDACTION.REDACTED | ||
class RedactionType(Enum): | ||
PLAIN_TEXT = RedactionEnumREDACTION.PLAIN_TEXT | ||
MASKED = RedactionEnumREDACTION.MASKED | ||
DEFAULT = RedactionEnumREDACTION.DEFAULT | ||
REDACTED = RedactionEnumREDACTION.REDACTED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from skyflow.utils.enums import Redaction | ||
from skyflow.utils.enums.redaction_type import RedactionType | ||
|
||
class DetokenizeRequest: | ||
def __init__(self, tokens, redaction_type = "plain-text", continue_on_error = False): | ||
def __init__(self, tokens, redaction_type = RedactionType.PLAIN_TEXT, continue_on_error = False): | ||
self.tokens = tokens | ||
self.redaction_type = Redaction.to_redaction_enum(redaction_type) | ||
self.redaction_type = redaction_type | ||
self.continue_on_error = continue_on_error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters