Ensure the 'inputs' field in /chat-messages takes effect every time

This commit is contained in:
Your Name 2024-09-03 15:39:37 +00:00
parent 7f67cb93ec
commit 3c05404007

View File

@ -116,7 +116,7 @@ class ChatAppGenerator(MessageBasedAppGenerator):
app_config=app_config,
model_conf=ModelConfigConverter.convert(app_config),
conversation_id=conversation.id if conversation else None,
inputs=conversation.inputs if conversation else self._get_cleaned_inputs(inputs, app_config),
inputs=self._get_cleaned_inputs(inputs, app_config),
query=query,
files=file_objs,
user_id=user.id,