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
|
**`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
|
||||||
|
|||||||
Reference in New Issue
Block a user