feat: analyze all button, support for UTF8 filenames

This commit is contained in:
vas3k
2025-05-22 19:22:30 +02:00
parent feb56fa3ac
commit 347cf2a0e8
7 changed files with 40 additions and 10 deletions

View File

@@ -1,7 +1,6 @@
import { prisma } from "@/lib/db"
export const DEFAULT_PROMPT_ANALYSE_NEW_FILE = `You are an accountant and invoice analysis assistant.
Extract the following information from the given invoice:
export const DEFAULT_PROMPT_ANALYSE_NEW_FILE = `You are an accountant and invoice analysis assistant. Extract following information from the given invoice:
{fields}
@@ -13,7 +12,10 @@ And projects are:
{projects}
If you can't find something leave it blank. Return only one object. Do not include any other text in your response!`
IMPORTANT RULES:
- Do not include any other text in your response!
- If you can't find something leave it blank, NEVER make up information
- Return only one object`
export const DEFAULT_SETTINGS = [
{
@@ -284,7 +286,7 @@ export const DEFAULT_FIELDS = [
code: "name",
name: "Name",
type: "string",
llm_prompt: "human readable name, summarize what is bought in the invoice",
llm_prompt: "human readable name, summarize what is bought or paid for in the invoice",
isVisibleInList: true,
isVisibleInAnalysis: true,
isRequired: true,