Repair the edits the web editor mangled, and the paths they broke
YasserHaidar
6e08541
Six files were edited in the Hugging Face web editor. Three things did not
survive that round trip:
- _CJK_RE's private-use-area range '-' was flattened to a bare
'-', so the class no longer stripped PUA characters and did strip a literal
ASCII hyphen from every model reply ("التسجيل المباشر - المفاضلة" came back
without its dash).
- Four files lost their trailing newline.
- LLM_MAX_TOKENS gained a trailing space.
Two paths the LangChain switch left broken:
- engine.build_llm imported llm.langchain_llm unconditionally, but
requirements-deploy.txt (Streamlit Community Cloud, Docker) does not carry
LangChain, so every chat answer there would have fallen to the deterministic
reply. LangChain is added to that manifest, and an ImportError now falls back
to the provider SDKs — the behaviour requirements.txt already claims in its
own comment.
- Four build_llm tests still patched llm.cloud_llm.CloudLLM, which build_llm no
longer calls. They patch the LangChain path inste…