Spaces:
Running
Running
Update intent_api.py
Browse files- 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:
|
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 |
|