You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HelgeSverre\ReceiptScanner\Data\Merchant::__construct(): Argument #3 ($address) must be of type ?string, array given, called in vendor/helgesverre/receipt-scanner/src/Data/Receipt.php on line 34
What can I do to fix this?
The text was updated successfully, but these errors were encountered:
Switch to another model, the readme does not mention it, but all new models from OpenAI should be supported as long as they support JSON mode.
Publish the prompts and tweak them for your use-case (Ex: add the line "If there are multiple addresses, only return one as an object" or something like that)
By default this package tries to pass the extracted data into a DTO, so if the data does not adhere to the DTO structure, it will fail/throw, which is usually the desired behaviour, rather than getting invalid data.
I've got an error:
HelgeSverre\ReceiptScanner\Data\Merchant::__construct(): Argument #3 ($address) must be of type ?string, array given, called in vendor/helgesverre/receipt-scanner/src/Data/Receipt.php on line 34
What can I do to fix this?
The text was updated successfully, but these errors were encountered: