mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
stream to gui
This commit is contained in:
parent
98d2997035
commit
15e6651e09
2 changed files with 35 additions and 16 deletions
|
@ -270,16 +270,13 @@ class GUI:
|
|||
with self.messages.chat_message("user"):
|
||||
st.write(prompt)
|
||||
|
||||
res = self.coder.run(prompt)
|
||||
# self.coder.io.user_input(with_message)
|
||||
|
||||
st.session_state.messages.append({"role": "assistant", "content": res})
|
||||
|
||||
with self.messages.chat_message("assistant"):
|
||||
st.write(res)
|
||||
res = st.write(self.coder.run_stream(prompt))
|
||||
cost = random.random() * 0.003 + 0.001
|
||||
st.caption(f"${cost:0.4f}")
|
||||
|
||||
st.session_state.messages.append({"role": "assistant", "content": res})
|
||||
|
||||
with self.messages:
|
||||
self.mock_tool_output()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue