Skip to content

Commit

Permalink
Update chat history rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmykOliva committed Dec 4, 2023
1 parent b599e71 commit a570ba3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ async def handle_chat(c:ChatState,request_body:dict):
c.end_reason = "end_conversation"
c.previous_chat_history = c.chat_history.copy()
c.chat_history = []
c.render_chat_history = []
c.ai_msg = ""
c.user_msg = ""
c.current_state = "introduction"
Expand Down Expand Up @@ -328,7 +329,7 @@ async def test_stream_post():
@app.get("/version")
def version(request: Request):
print(request.headers)
return {"version":"1.1"}
return {"version":"1.2"}

@app.get("/chat_history/{unique_id}")
def get_chat_history(unique_id: str):
Expand Down

0 comments on commit a570ba3

Please sign in to comment.