fix(chat): simplify user label to German; expose host via env var
- Change user message author label from "Du / You" to "Du" (German-first) - Add CHAINLIT_HOST env var to .env.example so the server listens on all interfaces and is reachable from outside localhost Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -67,3 +67,9 @@ KNOWLEDGE_BASE_DIR=openspec/changes/define-project-scope/content/knowledge-base
|
|||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
# How often (in seconds) to check the inbox for new messages.
|
# How often (in seconds) to check the inbox for new messages.
|
||||||
POLL_INTERVAL=60
|
POLL_INTERVAL=60
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------
|
||||||
|
# Web chat server
|
||||||
|
# ---------------------------------------------------------------
|
||||||
|
# Listen on all interfaces so the app is reachable from outside localhost.
|
||||||
|
CHAINLIT_HOST=0.0.0.0
|
||||||
|
|||||||
+1
-1
@@ -93,7 +93,7 @@ async def on_chat_start() -> None:
|
|||||||
len(state.messages),
|
len(state.messages),
|
||||||
)
|
)
|
||||||
for msg in state.messages:
|
for msg in state.messages:
|
||||||
author = "Spielgruppe Pumuckl" if msg.role == "assistant" else "Du / You"
|
author = "Spielgruppe Pumuckl" if msg.role == "assistant" else "Du"
|
||||||
await cl.Message(content=msg.content, author=author).send()
|
await cl.Message(content=msg.content, author=author).send()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user