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
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,13 +32,14 @@ docker run \
32
32
-e APP_API_KEY=your_api_key \
33
33
-e APP_API_SECRET=your_api_secret \
34
34
-e GEMINI_API_KEY=your_gemini_api_key \
35
+
-e GEMINI_MODEL=gemini-2.0-flash-exp
35
36
-e YNAB_API_KEY=your_ynab_api_key \
36
37
-e YNAB_BUDGET_ID=your_ynab_budget_id \
37
38
-p 3000:3000 \
38
39
ivankahl/ynab-slip-uploader
39
40
```
40
41
41
-
Replace the `your_gemini_api_key`, `your_ynab_api_key`, and `your_ynab_budget_id` placeholders with your Google Gemini and YNAB API credentials. You should also replace `your_ynab_budget_id` with the ID of your YNAB budget. The application is secured using basic authentication, with `your_api_key` as the username and `your_api_secret` as the password.
42
+
Replace the `your_gemini_api_key`, `your_ynab_api_key`, and `your_ynab_budget_id` placeholders with your Google Gemini and YNAB API credentials. You should also replace `your_ynab_budget_id` with the ID of your YNAB budget. The application is secured using basic authentication, with `your_api_key` as the username and `your_api_secret` as the password. You can customize which Gemini model should be used with the `GEMINI_MODEL` variable.
42
43
43
44
Finally, you can provide a comma-separated list of category groups if you want to limit which envelopes should be considered when classifying transactions. Leaving it empty means all envelopes will be used.
44
45
@@ -91,6 +92,7 @@ The following environment variables let you configure the application:
|`GEMINI_API_KEY`| Required | Your Google Gemini API key which you can generate [here](https://aistudio.google.com/app/apikey). |
95
+
|`GEMINI_MODEL`| Required | The [Gemini model variant](https://ai.google.dev/gemini-api/docs/models/gemini) you want to use. Minimum required variant is Gemini 1.5 and up as these support structured outputs. |
94
96
|`YNAB_API_KEY`| Required | Your YNAB Account API Key which y can generate [here](https://app.ynab.com/settings/developer). |
95
97
|`YNAB_BUDGET_ID`| Required | The ID of your YNAB budget. You'll find this in the URL when viewing your budget on YNAB. |
96
98
|`YNAB_CATEGORY_GROUPS`| Optional | A comma-separated list of category group names that should be considered when categorizing the transaction. If left blank, all categories will be used. |
systemInstruction: `Please process this slip. Categorize each line item individually based on the line item description. You should also provide a category for the entire slip based on the highest spent category in the line items. If there are no line items, use the name of the merchant to try and determine the category. Provide a very short memo which summarises what products were purchased. Output the transaction date in the format: 'YYYY-MM-DD'. If the slip doesn't have the full date, use the current date, which is ${newDate().toDateString()}, to try determine the full date`,
0 commit comments