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.
|
from llm_server import opts
|
|
from llm_server.routes.cache import redis
|
|
|
|
|
|
def format_sillytavern_err(msg: str, level: str = 'info'):
|
|
http_host = redis.get('http_host', str)
|
|
return f"""```
|
|
=== MESSAGE FROM LLM MIDDLEWARE AT {http_host} ===
|
|
-> {level.upper()} <-
|
|
{msg}
|
|
```"""
|