diff options
| author | Mert Demir <mertd@users.noreply.github.com> | 2024-02-05 02:23:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-04 12:23:11 -0500 |
| commit | fb49fb596a56955ca70eac9da47d2826299469e1 (patch) | |
| tree | 71dd092faf01d37b35a8015e3cfda494ddc7b99e /README.md | |
| parent | 10fd69404a69b15d5c0888d9382663f324455ec0 (diff) | |
Automatic category from expense title (#80)
* environment variable
* random category draft
* get category from ai
* input limit and documentation
* use watch
* use field.name
* prettier
* presigned upload, readme warning, category to string util
* prettier
* check whether feature is enabled
* use process.env
* improved prompt to return id only
* remove console.debug
* show loader
* share class name
* prettier
* use template literals
* rename format util
* prettier
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -82,7 +82,7 @@ S3_UPLOAD_ENDPOINT=http://localhost:9000 ### Create expense from receipt -You can offer users to create expense by uploading a receipt. This feature relies on [OpenAI GPT-4 with Vision](https://platform.openai.com/docs/guides/vision). +You can offer users to create expense by uploading a receipt. This feature relies on [OpenAI GPT-4 with Vision](https://platform.openai.com/docs/guides/vision) and a public S3 storage endpoint. To enable the feature: @@ -95,6 +95,15 @@ NEXT_PUBLIC_ENABLE_RECEIPT_EXTRACT=true OPENAI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX ``` +### Deduce category from title + +You can offer users to automatically deduce the expense category from the title. Since this feature relies on a OpenAI subscription, follow the signup instructions above and configure the following environment variables: + +```.env +NEXT_PUBLIC_ENABLE_CATEGORY_EXTRACT=true +OPENAI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX +``` + ## License MIT, see [LICENSE](./LICENSE). |
