25 lines
753 B
Python
25 lines
753 B
Python
"""Show a welcome box on the home page when the user has
|
|
no chat history.
|
|
"""
|
|
|
|
from rich.console import RenderableType
|
|
from textual.widgets import Static
|
|
|
|
|
|
class Welcome(Static):
|
|
MESSAGE = """
|
|
To get started, type a message in the box at the top of the
|
|
screen and press [b u]enter[/] to send it. Use [b u]shift+enter[/] or [b u]\\[/] for newlines.
|
|
|
|
Change the model and system prompt by pressing [b u]ctrl+o[/].
|
|
|
|
Connected to the Knowledge Verification API for grounded responses.
|
|
Use [b u]/search[/], [b u]/verify[/], and [b u]/correct[/] for direct KV operations.
|
|
|
|
For cloud models, set the appropriate API key (e.g. [b]ANTHROPIC_API_KEY[/]).
|
|
"""
|
|
|
|
BORDER_TITLE = "Welcome!"
|
|
|
|
def render(self) -> RenderableType:
|
|
return self.MESSAGE
|