fix: remove \xa0 from code blocks (#509)

Co-authored-by: Matthieu Boret <matthieu.boret@fr.clara.net>
This commit is contained in:
mattboret 2023-10-04 18:46:32 +02:00 committed by GitHub
parent 499dfb59da
commit b801937299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ def extract_embedded_json(s: str) -> dict:
def clean_up_code_blocks(model_out_raw: str) -> str:
return model_out_raw.strip().strip("```").strip()
return model_out_raw.strip().strip("```").strip().replace("\\xa0", "")
def clean_model_quote(quote: str, trim_length: int) -> str: