fix mother

This commit is contained in:
Will McGugan
2025-07-11 16:52:34 +01:00
parent 3519827e0f
commit 4057ae1713

View File

@@ -74,6 +74,7 @@ class MotherApp(App):
def on_mount(self) -> None: def on_mount(self) -> None:
"""You might want to change the model if you don't have access to it.""" """You might want to change the model if you don't have access to it."""
self.model = llm.get_model("gpt-4o") self.model = llm.get_model("gpt-4o")
self.query_one("#chat-view").anchor()
@on(Input.Submitted) @on(Input.Submitted)
async def on_input(self, event: Input.Submitted) -> None: async def on_input(self, event: Input.Submitted) -> None:
@@ -82,8 +83,6 @@ class MotherApp(App):
event.input.clear() event.input.clear()
await chat_view.mount(Prompt(event.value)) await chat_view.mount(Prompt(event.value))
await chat_view.mount(response := Response()) await chat_view.mount(response := Response())
response.anchor()
self.send_prompt(event.value, response) self.send_prompt(event.value, response)
@work(thread=True) @work(thread=True)