#!/usr/bin/env python3 | |
"""Simulate a WhatsApp message for MADONE SL 6""" | |
import sys | |
import os | |
sys.path.insert(0, '/home/samikoen/bf_wab_space') | |
# Set API key if exists | |
api_key = "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" | |
os.environ['OPENAI_API_KEY'] = api_key | |
print("="*60) | |
print("SIMULATING WHATSAPP MESSAGE: 'madone sl 6'") | |
print("="*60) | |
from smart_warehouse_complete import get_warehouse_stock_smart_complete | |
try: | |
print("\nCalling get_warehouse_stock_smart_complete('madone sl 6')...") | |
result = get_warehouse_stock_smart_complete("madone sl 6") | |
if result: | |
print("\n✅ RESULT:") | |
for line in result: | |
print(f" {line}") | |
else: | |
print("\n❌ No result (None returned)") | |
except Exception as e: | |
print(f"\n❌ ERROR: {e}") | |
import traceback | |
traceback.print_exc() |