feat: add "disclaimer" to the prohibited strings list (#334)
* add "disclaimer" to the prohibited strings list The favorite Gemma's word. * add "disclaimer" to config.py refusal markers
This commit is contained in:
@@ -135,6 +135,7 @@ max_shard_size = "5GB"
|
|||||||
|
|
||||||
# Strings whose presence in a response (case insensitive) identifies the response as a refusal.
|
# Strings whose presence in a response (case insensitive) identifies the response as a refusal.
|
||||||
refusal_markers = [
|
refusal_markers = [
|
||||||
|
"disclaimer",
|
||||||
"sorry",
|
"sorry",
|
||||||
"i can'",
|
"i can'",
|
||||||
"i cant",
|
"i cant",
|
||||||
|
|||||||
@@ -412,6 +412,7 @@ class Settings(BaseSettings):
|
|||||||
|
|
||||||
refusal_markers: list[str] = Field(
|
refusal_markers: list[str] = Field(
|
||||||
default=[
|
default=[
|
||||||
|
"disclaimer",
|
||||||
"sorry",
|
"sorry",
|
||||||
"i can'",
|
"i can'",
|
||||||
"i cant",
|
"i cant",
|
||||||
|
|||||||
Reference in New Issue
Block a user