martinjosifoski commited on
Commit
89be04c
1 Parent(s): f4b99cd

Add support for multiple human_message input keys.

Browse files
OpenAIChatAtomicFlow.py CHANGED
@@ -103,7 +103,7 @@ class OpenAIChatAtomicFlow(AtomicFlow):
103
  def get_input_keys(self, data: Optional[Dict[str, Any]] = None):
104
  """Returns the expected inputs for the flow given the current state and, optionally, the input data"""
105
  if self._is_conversation_initialized():
106
- return [self.flow_config["default_human_input_key"]]
107
  else:
108
  return self.flow_config["input_keys"]
109
 
 
103
  def get_input_keys(self, data: Optional[Dict[str, Any]] = None):
104
  """Returns the expected inputs for the flow given the current state and, optionally, the input data"""
105
  if self._is_conversation_initialized():
106
+ return self.flow_config["default_human_input_keys"]
107
  else:
108
  return self.flow_config["input_keys"]
109
 
OpenAIChatAtomicFlow.yaml CHANGED
@@ -34,7 +34,8 @@ human_message_prompt_template:
34
  input_variables:
35
  - "query"
36
  template_format: jinja2
37
- default_human_input_key: "query"
 
38
  input_data_transformations: []
39
 
40
  query_message_prompt_template:
 
34
  input_variables:
35
  - "query"
36
  template_format: jinja2
37
+ default_human_input_keys:
38
+ - "query"
39
  input_data_transformations: []
40
 
41
  query_message_prompt_template: