Pārlūkot izejas kodu

fix: react router agent direct output (#904)

tags/0.3.15
takatost pirms 2 gadiem
vecāks
revīzija
edb06f6aed
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      api/core/completion.py

+ 1
- 1
api/core/completion.py Parādīt failu

@@ -126,7 +126,7 @@ class Completion:
# the output of the agent can be used directly as the main output content without calling LLM again
fake_response = None
if not app_model_config.pre_prompt and agent_execute_result and agent_execute_result.output \
and agent_execute_result.strategy != PlanningStrategy.ROUTER:
and agent_execute_result.strategy not in [PlanningStrategy.ROUTER, PlanningStrategy.REACT_ROUTER]:
fake_response = agent_execute_result.output

# get llm prompt

Notiek ielāde…
Atcelt
Saglabāt