Using the model

#1
by TakMaz - opened

Hello,

when I pass in "Sale #: S1 -40 1206145922\nServed by Lewis A\nS1 -40 1206145922\nDescription\nAmount\nM&M's Chocolate\n£1.50\nSubtotal:\n£1.50\nTotal ex tax:\n- VAT\n£1.25\n£0.25\nTotal Inc Tax:\nMethod\nVisa\n£1.50\nAmount\n£1.50\nPrices shown in GBP\n2023-12-06 14:59:39\nRegister: Soho POS 1\nPrinter: Soho Works Shoreditch - POS 1-TM-m30_02\n7738\nSale ID: k3vvig7k\nVAT: 283 1918 86\n"

The model does not return an expected outcome i.e.

{ "receipt": { "store": "BAJA FRESH", "manager": "GENERAL MANAGER: NORMAN", "address": "176 Rosa C", "check": "Chk 7545", "date": "Dec26'0707:26PM", "tax": "Gst0", "total": "20.00", "payment": "CASH", "change": "0.61", "discount": "Discount on purchases of $5.00 or more,Offer expires in 30 day", "coupon": "Use this receipt as coupon", "survey": "Take our brief survey", "redemption": "Write down redemption code", "prompt": "When Prompted, Enter Store Write down redemption code Use this receipt as coupon", "items": [ { "name": "1 BAJA STEAK", "price": "6.95", "modifiers": [ "NO GUACAMOLE", "ENCHILADO STYLE" ] }, { "name": "TAKE OUT", "price": "1.49" } ] } }

I deployed this with AN API and it did not work, even with the special characters removed. What am I doing wrong?

can you share your code and input structure here?

Sign up or log in to comment