mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-07 11:28:09 +02:00
fix: remove \xa0 from code blocks (#509)
Co-authored-by: Matthieu Boret <matthieu.boret@fr.clara.net>
This commit is contained in:
parent
499dfb59da
commit
b801937299
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user