From a2299b0bae21c8f05f091732a78fc250cbd5e016 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 28 Sep 2025 17:41:50 +0200 Subject: openAI invoice importing v0.1 --- include/ai_service.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/ai_service.hpp') 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 -- cgit v1.2.3-70-g09d2