Debug logs ekle - MADONE SL 6 neden bulunamıyor analizi
Browse files
__pycache__/smart_warehouse_complete.cpython-312.pyc
ADDED
Binary file (13.4 kB). View file
|
|
smart_warehouse_complete.py
CHANGED
@@ -223,6 +223,15 @@ Examples of correct responses:
|
|
223 |
indices_str = result['choices'][0]['message']['content'].strip()
|
224 |
|
225 |
print(f"DEBUG - GPT-5 response: '{indices_str}'")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
|
227 |
# Handle empty response
|
228 |
if not indices_str or indices_str == "-1":
|
|
|
223 |
indices_str = result['choices'][0]['message']['content'].strip()
|
224 |
|
225 |
print(f"DEBUG - GPT-5 response: '{indices_str}'")
|
226 |
+
print(f"DEBUG - Query was: '{user_message}'")
|
227 |
+
print(f"DEBUG - Products sent to GPT: {len(products_summary)} items")
|
228 |
+
|
229 |
+
# Debug: Check if MADONE SL 6 is in the list
|
230 |
+
madone_found = [p for p in products_summary if "MADONE SL 6" in p.get("name", "")]
|
231 |
+
if madone_found:
|
232 |
+
print(f"DEBUG - MADONE SL 6 products in list: {len(madone_found)}")
|
233 |
+
for m in madone_found[:2]:
|
234 |
+
print(f" - Index {m['index']}: {m['name']} ({m.get('variant', '')})")
|
235 |
|
236 |
# Handle empty response
|
237 |
if not indices_str or indices_str == "-1":
|