From ebefd3d10af8d79e765030c263aa560cbb6420d2 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 25 Oct 2025 12:24:22 +0200 Subject: ai invoice importing with batch queries --- include/administration.hpp | 2 +- include/importer.hpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/administration.hpp b/include/administration.hpp index 5680418..f13f4fb 100644 --- a/include/administration.hpp +++ b/include/administration.hpp @@ -384,7 +384,7 @@ typedef void (*project_changed_event)(project* project); typedef enum { AI_PROVIDER_OPENAI = 0, - AI_PROVIDER_DEEPSEEK = 1, + //AI_PROVIDER_DEEPSEEK = 1, AI_PROVIDER_END, } ai_provider; diff --git a/include/importer.hpp b/include/importer.hpp index e206204..a27ed8e 100644 --- a/include/importer.hpp +++ b/include/importer.hpp @@ -59,12 +59,15 @@ namespace importer { ai_provider service; } model_list_request; + typedef void (*batch_query_response_handler)(invoice* buffer, char* json); + typedef struct { char* provider_name; char* default_model; bool (*upload_file)(char* file_path, char* file_id, size_t file_id_len); bool (*query_with_file)(char* query, size_t query_length, char* file_id, char** response); + bool (*batch_query_with_file)(char** queries, size_t query_count, char* file_id, invoice* buffer, batch_query_response_handler response_handler); bool (*get_available_models)(model_list_request* buffer); } ai_provider_impl; -- cgit v1.2.3-70-g09d2