Bläddra i källkod

fix(api): fix single stepping variable loading (#25908)

tags/1.9.0
QuantumGhost 1 månad sedan
förälder
incheckning
13fe2ca8fe
Inget konto är kopplat till bidragsgivarens mejladress
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. 1
    1
      api/core/workflow/nodes/llm/node.py
  2. 2
    0
      api/core/workflow/workflow_entry.py

+ 1
- 1
api/core/workflow/nodes/llm/node.py Visa fil

model_instance=model_instance, model_instance=model_instance,
) )


query = None
query: str | None = None
if self._node_data.memory: if self._node_data.memory:
query = self._node_data.memory.query_prompt_template query = self._node_data.memory.query_prompt_template
if not query and ( if not query and (

+ 2
- 0
api/core/workflow/workflow_entry.py Visa fil

input_value = user_inputs.get(node_variable) input_value = user_inputs.get(node_variable)
if not input_value: if not input_value:
input_value = user_inputs.get(node_variable_key) input_value = user_inputs.get(node_variable_key)
if input_value is None:
continue


if isinstance(input_value, dict) and "type" in input_value and "transfer_method" in input_value: if isinstance(input_value, dict) and "type" in input_value and "transfer_method" in input_value:
input_value = file_factory.build_from_mapping(mapping=input_value, tenant_id=tenant_id) input_value = file_factory.build_from_mapping(mapping=input_value, tenant_id=tenant_id)

Laddar…
Avbryt
Spara