mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-14 17:03:29 +03:00
fix(chat): update data keys (#923)
This commit is contained in:
parent
0cc6dcfa47
commit
21db719796
@ -140,7 +140,7 @@ class QABaseBrainPicking(BaseBrainPicking):
|
||||
|
||||
model_response = qa(
|
||||
{
|
||||
"question": question,
|
||||
"question": question.question,
|
||||
"chat_history": transformed_history,
|
||||
"custom_personality": self.get_prompt(),
|
||||
}
|
||||
@ -227,7 +227,7 @@ class QABaseBrainPicking(BaseBrainPicking):
|
||||
wrap_done(
|
||||
qa.acall(
|
||||
{
|
||||
"question": question,
|
||||
"question": question.question,
|
||||
"chat_history": transformed_history,
|
||||
"custom_personality": self.get_prompt(),
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ class GetChatHistoryOutput(BaseModel):
|
||||
|
||||
def dict(self, *args, **kwargs):
|
||||
chat_history = super().dict(*args, **kwargs)
|
||||
chat_history["chat_id"] = str(chat_history.get("prompt_id"))
|
||||
chat_history["chat_id"] = str(chat_history.get("chat_id"))
|
||||
chat_history["message_id"] = str(chat_history.get("message_id"))
|
||||
|
||||
return chat_history
|
||||
|
Loading…
Reference in New Issue
Block a user