Skip to content

Commit

Permalink
Added new known safety text error
Browse files Browse the repository at this point in the history
  • Loading branch information
igolaizola committed Sep 1, 2024
1 parent 7e2356f commit c912fe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/runway/runway.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (e *Error) Reason() string {
func (e *Error) Temporary() bool {
r := e.data.Error.Reason
switch {
case r == "SAFETY.INPUT.TEXT", r == "SAFETY.INPUT.IMAGE":
case r == "SAFETY.INPUT.TEXT", r == "SAFETY.INPUT.IMAGE", r == "INPUT_PREPROCESSING.SAFETY.TEXT":
return false
case strings.HasPrefix(r, "INTERNAL.BAD_OUTPUT."), r == "SAFETY.OUTPUT.VIDEO":
return true
Expand All @@ -394,6 +394,7 @@ func (e *Error) Unknown() bool {
"SAFETY.INPUT.TEXT",
"SAFETY.INPUT.IMAGE",
"SAFETY.OUTPUT.VIDEO",
"INPUT_PREPROCESSING.SAFETY.TEXT",
"":
return false
default:
Expand Down

0 comments on commit c912fe3

Please sign in to comment.