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