@@ -139,7 +139,8 @@ export class AIAssistantService {
...
@@ -139,7 +139,8 @@ export class AIAssistantService {
{
{
text: [
text: [
'Extract the receipt into structured data. Use null when a field is not visible.',
'Extract the receipt into structured data. Use null when a field is not visible.',
'Amounts must be non-negative decimal strings without currency symbols or thousands separators.',
'Amounts must be non-negative numeric strings without thousands separators or currency symbols.',
'For example, a receipt showing "159.500 VND" or "159,500" must be extracted as "159500". A receipt showing "38.000" must be "38000". Do not add extra zeros.',
'transactionDate must use YYYY-MM-DD. currency must be an uppercase three-letter code.',
'transactionDate must use YYYY-MM-DD. currency must be an uppercase three-letter code.',
`Hints:${JSON.stringify({
`Hints:${JSON.stringify({
language:input.languageHint??null,
language:input.languageHint??null,
...
@@ -155,35 +156,18 @@ export class AIAssistantService {
...
@@ -155,35 +156,18 @@ export class AIAssistantService {