summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-25 12:24:22 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-25 12:24:22 +0200
commitebefd3d10af8d79e765030c263aa560cbb6420d2 (patch)
tree037099766d4862687daa11a21ffe03bf3208a607 /include
parentc35aa95081b994bf0d66d762945ad93bf501ff95 (diff)
ai invoice importing with batch queries
Diffstat (limited to 'include')
-rw-r--r--include/administration.hpp2
-rw-r--r--include/importer.hpp3
2 files changed, 4 insertions, 1 deletions
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;