From fb49fb596a56955ca70eac9da47d2826299469e1 Mon Sep 17 00:00:00 2001 From: Mert Demir Date: Mon, 5 Feb 2024 02:23:11 +0900 Subject: 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 --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 0115ac5..5f70738 100644 --- a/README.md +++ b/README.md @@ -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). -- cgit v1.3