Rewrap a paragraph

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jaroslav Beneš
2026-08-02 17:32:07 +02:00
parent facce7b49a
commit a4cfb2eea4
+2 -3
View File
@@ -146,9 +146,8 @@ deploy/ systemd unit, nginx vhost, install/update scripts
**`render()`, not `TemplateResponse`.** `web/templating.py:render()` injects **`render()`, not `TemplateResponse`.** `web/templating.py:render()` injects
`user`, `theme`, `layout`, `version` and `allow_signup`. Templates assume they `user`, `theme`, `layout`, `version` and `allow_signup`. Templates assume they
exist. If you must call `templates.TemplateResponse` directly (the SSE path does, exist. If you must call `templates.TemplateResponse` directly (the SSE path does,
because because there is no `Request`), pass `user` explicitly — `chat/_message.html`
there is no `Request`), pass `user` explicitly — `chat/_message.html` renders renders both roles and the user branch dereferences it.
both roles and the user branch dereferences it.
**The message template is the state machine.** `chat/_message.html` renders an **The message template is the state machine.** `chat/_message.html` renders an
incomplete assistant message as a streaming shell carrying `sse-connect`, and a incomplete assistant message as a streaming shell carrying `sse-connect`, and a