We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff10df commit 42f1633Copy full SHA for 42f1633
src/openai/lib/_validators.py
@@ -407,7 +407,7 @@ def completions_space_start_validator(df: pd.DataFrame) -> Remediation:
407
"""
408
409
def add_space_start(x: Any) -> Any:
410
- x["completion"] = x["completion"].apply(lambda x: ("" if x[0] == " " else " ") + x)
+ x["completion"] = x["completion"].apply(lambda s: ("" if s.startswith(" ") else " ") + s)
411
return x
412
413
optional_msg = None
0 commit comments