Fix amount preview for scanned receipts (#227)

* no division of amount

* use gpt-4-turbo

* testing setup and naive test

* test multiple variants

* document

* correct locale names

* test large amounts

* test wth strings

* prettier
This commit is contained in:
Mert Demir
2024-09-29 07:39:01 +09:00
committed by GitHub
parent 50b3a2e431
commit 9a5674e239
6 changed files with 4123 additions and 55 deletions

View File

@@ -12,7 +12,8 @@
"prettier": "prettier -w src",
"postinstall": "prisma migrate deploy && prisma generate",
"build-image": "./scripts/build-image.sh",
"start-container": "docker compose --env-file container.env up"
"start-container": "docker compose --env-file container.env up",
"test": "jest"
},
"dependencies": {
"@formatjs/intl-localematcher": "^0.5.4",
@@ -62,8 +63,12 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@total-typescript/ts-reset": "^0.5.1",
"@types/content-disposition": "^0.5.8",
"@types/jest": "^29.5.12",
"@types/negotiator": "^0.6.3",
"@types/node": "^20",
"@types/pg": "^8.10.9",
@@ -74,10 +79,13 @@
"dotenv": "^16.3.1",
"eslint": "^8",
"eslint-config-next": "^14.1.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"postcss": "^8",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"tailwindcss": "^3",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.3.3"
}