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
{{ message }}
Repository navigation
Commit 2c5e907
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.de.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ Next.js 15 und React 19 bilden die Anwendung. Die Oberfläche nutzt Tailwind CSS
55
55
56
56
## Stand und Grenzen
57
57
58
-
Das Projekt ist eine Demo. Belegscan und Monatsberichte verwenden jetzt gemeinsam `GEMINI_MODEL`, standardmäßig `gemini-3.8-flash`. Für den Gratis-Start wird ein Google-AI-Studio-Projekt im Free-Tarif ohne aktivierte kostenpflichtige Abrechnung verwendet. Die tatsächlichen Kontingente sind projektabhängig. Der Belegscan benötigt eine Anmeldung und begrenzt Versuche auf fünf pro Nutzer mit Auffüllung nach 24 Stunden. Ein echter API-Test mit eigenem Schlüssel steht aus. Siehe [KI kostenlos einrichten](docs/AI.md).
58
+
Das Projekt ist eine Demo. Belegscan und Monatsberichte verwenden jetzt gemeinsam `GEMINI_MODEL`, standardmäßig `gemini-3.5-flash-lite`. Der Free-Tarif des Demo-Projekts ohne aktivierte Abrechnung wurde in AI Studio bestätigt. Ein echter API-Test mit erfundenem Belegtext lieferte die erwarteten JSON-Daten. Die tatsächlichen Kontingente sind projektabhängig. Der Belegscan benötigt eine Anmeldung und begrenzt Versuche auf fünf pro Nutzer mit Auffüllung nach 24 Stunden. Der Bildscan über die angemeldete Oberfläche und der Berichtversand müssen separat geprüft werden. Siehe [KI kostenlos einrichten](docs/AI.md).
59
59
60
60
Der alte Seed-Endpunkt ist deaktiviert und antwortet mit HTTP 410. Das bisherige Skript mit festen IDs wird darüber nicht mehr ausgeführt. Next.js und seine Prüfkonfiguration wurden auf die abgesicherte Version 15.5.28 aktualisiert; geschützte Routen und die Anmeldeweiterleitung sind korrigiert.
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,7 @@ The [quality workflow](.github/workflows/quality.yml) checks lint, unit tests, t
151
151
152
152
This repository is a **demo**, with implemented product flows and some unfinished integration details:
153
153
154
-
-**AI configuration:** the retired Gemini 1.5 model has been replaced by a shared [`GEMINI_MODEL` configuration](lib/gemini.mjs), defaulting to `gemini-3.8-flash`. Google currently lists a [Free tier](https://ai.google.dev/gemini-api/docs/pricing) for this model. Use a Free-tier project without paid billing, check its actual quotas in AI Studio and verify model access with your own key. This change has not been live-tested against Google. See [free AI setup](docs/AI.md).
154
+
-**AI configuration:** the retired Gemini 1.5 model has been replaced by a shared [`GEMINI_MODEL` configuration](lib/gemini.mjs), defaulting to `gemini-3.5-flash-lite`. Google currently lists a [Free tier](https://ai.google.dev/gemini-api/docs/pricing) for this model. The demo project's Free tier was confirmed in AI Studio, and a live fictional receipt-text test returned the expected JSON. Your own project's access and quotas still require verification. See [free AI setup](docs/AI.md).
155
155
-**Seed endpoint:** the legacy `/api/seed` route is disabled and returns HTTP 410. It does not execute the old generator with fixed user/account IDs. Add fictional transactions through the account interface instead.
156
156
-**Landing-page content:** usage numbers, ratings and testimonials are demonstration copy, not verified customer or operational metrics. Existing illustrations are not application screenshots.
157
157
-**Deployment readiness:** Next.js and its ESLint configuration are updated to 15.5.28, the currently documented patched 15.x release. Protected-route matching and the sign-in redirect have been corrected. Receipt scans require authentication, reject unsupported or oversized files server-side and use a dedicated Arcjet limit. Provider configuration, recurring-job behavior and end-to-end use still need verification before real financial data is used.
Copy file name to clipboardExpand all lines: docs/AI.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Recommended starting point
6
6
7
-
Use the **Gemini Developer API Free tier** for the first demo. The application already uses Google's SDK, and Google currently lists free input/output tokens for `gemini-3.8-flash`. Actual eligibility, model access and capacity belong to your Google project; they cannot be guaranteed by this repository.
7
+
Use the **Gemini Developer API Free tier** for the first demo. The application already uses Google's SDK, and Google currently lists free input/output tokens for `gemini-3.5-flash-lite`. Actual eligibility, model access and capacity belong to your Google project; they cannot be guaranteed by this repository.
8
8
9
9
OpenAI could power the same text and image workflows through a different adapter, but its normal generative API pricing does not provide a generally guaranteed free allowance for these tasks. A ChatGPT subscription is not a substitute for API billing. This repository therefore keeps Gemini as its only AI provider for the free-first setup and does not add a paid fallback.
10
10
@@ -15,7 +15,7 @@ Official sources, checked October 25, 2026: [Google pricing](https://ai.google.d
15
15
1. Open **[Google AI Studio API keys](https://aistudio.google.com/apikey)** and sign in.
16
16
2. Create or choose a project in the **Free** tier. Do not enable paid billing for a zero-cost demo. A key belonging to an already billed project can produce charges; the app cannot infer the project's billing tier from the key.
17
17
3. Create a key restricted to the Gemini API, following [Google's key guide](https://ai.google.dev/gemini-api/docs/api-key).
18
-
4. In the local, Git-ignored `.env` file, set `GEMINI_API_KEY` to your key and leave `GEMINI_MODEL=gemini-3.8-flash` unless your project's model availability requires a change.
18
+
4. In the local, Git-ignored `.env` file, set `GEMINI_API_KEY` to your key and leave `GEMINI_MODEL=gemini-3.5-flash-lite` unless your project's model availability requires a change.
19
19
5. Restart the full application. Keep the key on the server; do not post it in issues, screenshots, chat transcripts or Git commits.
20
20
6. Open the project's rate-limit view in AI Studio. The minute, token and daily limits shown there are authoritative for that project.
21
21
@@ -36,7 +36,7 @@ The per-user scan bucket is not a global project cost cap. Monthly reports also
36
36
37
37
## Verification and data handling
38
38
39
-
Unit tests cover missing keys, shared model selection, retired-model rejection and receipt upload boundaries. They do not contact Google. A live model-list request with an owner-supplied key confirmed authentication and availability of `gemini-3.8-flash`; it generated no content and does not establish free quota or billing status. A live receipt scan and report generation remain unverified until a configured integration run succeeds.
39
+
Unit tests cover missing keys, shared model selection, retired-model rejection and receipt upload boundaries. They do not contact Google. On October 25, 2026, AI Studio showed the demo project's Free tier with billing not enabled. A live SDK request using fictional receipt text and `gemini-3.5-flash-lite` returned valid JSON with the expected amount and date. The initially selected `gemini-3.8-flash` returned 503 overload errors twice, so the demo now selects Flash-Lite explicitly. This is not an automatic fallback. Image upload through the authenticated UI and scheduled report delivery still need separate integration checks.
40
40
41
41
Use fictional receipt data initially. Receipt images and monthly aggregate statistics leave the application when those features call Google. Review the provider terms applicable to your location and tier before using personal financial data; the [pricing page](https://ai.google.dev/gemini-api/docs/pricing) links to the relevant data-use terms.
|`ARCJET_KEY`| Shield, bot detection and transaction rate limiting. | Starting the main application. |
50
50
|`GEMINI_API_KEY`| Receipt extraction and monthly AI insights. | Enabling AI features. |
51
-
|`GEMINI_MODEL`| Shared model selection; defaults to `gemini-3.8-flash`. | Optional override; verify availability in your project. |
51
+
|`GEMINI_MODEL`| Shared model selection; defaults to `gemini-3.5-flash-lite`. | Optional override; verify availability in your project. |
52
52
|`RESEND_API_KEY`| Budget-alert and monthly-report delivery. | Sending email. |
53
53
|`OPEN_EXCANGE_API_KEY`|`/api/exchangeRates`. The spelling matches the existing code. | Using exchange-rate data. |
54
54
|`INNGEST_EVENT_KEY`| Send events to Inngest Cloud. | Deploying background jobs to Inngest Cloud. |
@@ -82,7 +82,7 @@ Open [localhost:3000](http://localhost:3000), sign up and create your first acco
82
82
83
83
### Receipt scanning and AI reports
84
84
85
-
Provide `GEMINI_API_KEY` and optionally `GEMINI_MODEL`. Both integrations now use [`lib/gemini.mjs`](../lib/gemini.mjs), which defaults to `gemini-3.8-flash`, requests JSON output and caps output at 2,048 tokens. It rejects retired Gemini 1.5 model IDs. Check provider access and actual output with your project's key before considering AI verified. See [AI.md](AI.md) for the Free-tier setup and limits.
85
+
Provide `GEMINI_API_KEY` and optionally `GEMINI_MODEL`. Both integrations now use [`lib/gemini.mjs`](../lib/gemini.mjs), which defaults to `gemini-3.5-flash-lite`, requests JSON output and caps output at 2,048 tokens. It rejects retired Gemini 1.5 model IDs. Check provider access and actual output with your project's key before considering AI verified. See [AI.md](AI.md) for the Free-tier setup and limits.
86
86
87
87
The receipt uploader and Server Action both check for non-empty JPEG, PNG or WebP files of at most 4 MiB, leaving room beneath the 5 MB Server Action body limit. Scanning requires authentication and a separate Arcjet bucket of five attempts per user, refilling every 24 hours. Provider project quotas apply in addition. Confirm every extracted field before saving.
0 commit comments