mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
feat: use structured output, import CSV, bugfixes
This commit is contained in:
@@ -35,15 +35,5 @@ export function buildLLMPrompt(
|
||||
prompt = prompt.replace("{categories.code}", categories.map((category) => `${category.code}`).join(", "))
|
||||
prompt = prompt.replace("{projects.code}", projects.map((project) => `${project.code}`).join(", "))
|
||||
|
||||
prompt = prompt.replace(
|
||||
"{json_structure}",
|
||||
"{ " +
|
||||
fields
|
||||
.filter((field) => field.llm_prompt)
|
||||
.map((field) => `${field.code}: ${field.type}`)
|
||||
.join(", ") +
|
||||
" }"
|
||||
)
|
||||
|
||||
return prompt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user