Skip to content

Commit

Permalink
[Hotfix] Slack Message History Not Being Passed Introduced by Another…
Browse files Browse the repository at this point in the history
… Hotfix During 0.3.1 (#319)

Just 1 line of code change. PR is self explanatory.

This is causing an issue in prod and new branch has been tested where it
does not error out
  • Loading branch information
davidgxue authored Mar 11, 2024
1 parent 7211a5e commit 59d14b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/ask_astro/services/questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ async def answer_question(request: AskAstroRequest) -> None:
lambda: slack_answer_question_chain(
{
"question": request.prompt,
"chat_history": request.messages,
"chat_history": [],
"messages": request.messages,
},
metadata={"request_id": str(request.uuid), "client": str(request.client)},
)
Expand Down

0 comments on commit 59d14b8

Please sign in to comment.