summaryrefslogtreecommitdiff
path: root/include/ai_service.hpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-09-28 17:41:50 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-09-28 17:41:50 +0200
commita2299b0bae21c8f05f091732a78fc250cbd5e016 (patch)
treeb1de8319d1088b1209ba377665995b4543180d4b /include/ai_service.hpp
parentd8c4d84dc75300c6d4d8b0adceafa33741960b92 (diff)
openAI invoice importing v0.1
Diffstat (limited to 'include/ai_service.hpp')
-rw-r--r--include/ai_service.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ai_service.hpp b/include/ai_service.hpp
index b481b58..cf0b67a 100644
--- a/include/ai_service.hpp
+++ b/include/ai_service.hpp
@@ -16,6 +16,8 @@
#pragma once
+#include "administration.hpp"
+
typedef struct
{
time_t started_at;
@@ -23,4 +25,12 @@ typedef struct
char* result;
} ai_request;
+typedef struct
+{
+ 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);
+} ai_provider_impl;
+
+extern ai_provider_impl _chatgpt_api_provider;
+
ai_request* ai_document_to_invoice(char* file_path); \ No newline at end of file