MCPcopy Create free account
hub / github.com/DataArcTech/ToG / check_refuse

Function check_refuse

eval/utils.py:116–118  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

114
115
116def check_refuse(string):
117 refuse_words = ["however", "sorry"]
118 return any(word in string.lower() for word in refuse_words)
119
120
121def exact_match(response, answers):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected