ciyidogan commited on
Commit
ef4f51b
·
verified ·
1 Parent(s): 5ac94ba

Update intent_api.py

Browse files
Files changed (1) hide show
  1. intent_api.py +2 -2
intent_api.py CHANGED
@@ -165,8 +165,8 @@ def execute_intent(intent_name, user_input, session_dict, intent_definitions, da
165
  value = json_resp.get(field) if field else json_resp
166
  template = api_def.get("reply_template", str(value))
167
 
168
- # 🔧 DÜZELTME: Cevap field’ını açıkça variables içine ekle
169
- variables_with_response = {**variables}
170
  if field:
171
  variables_with_response[field] = str(value)
172
 
 
165
  value = json_resp.get(field) if field else json_resp
166
  template = api_def.get("reply_template", str(value))
167
 
168
+ # 🔧 DÜZELTME: session değişkenleri, extract edilenler ve cevaptan gelen field’ı birleştir
169
+ variables_with_response = {**session.get("variables", {}), **variables}
170
  if field:
171
  variables_with_response[field] = str(value)
172