This repository has been archived on 2024-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
local-llm-server/llm_server/routes/helpers/client.py

10 lines
199 B
Python

from llm_server import opts
def format_sillytavern_err(msg: str, level: str = 'info'):
return f"""```
=== MESSAGE FROM LLM MIDDLEWARE AT {opts.http_host} ===
-> {level.upper()} <-
{msg}
```"""