From 0821197bc1c57c756e737740d6a6de9c83314fae Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 9 Jan 2026 17:30:15 +0100 Subject: fix warnings --- src/providers/openAI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/providers/openAI.cpp') diff --git a/src/providers/openAI.cpp b/src/providers/openAI.cpp index 62a2ae8..c743711 100644 --- a/src/providers/openAI.cpp +++ b/src/providers/openAI.cpp @@ -24,7 +24,7 @@ #include "logger.hpp" #include "importer.hpp" -static bool _openAI_batch_query_with_file(const char** queries, size_t query_count, char* file_id, invoice* buffer, importer::batch_query_response_handler response_handler) +static bool _openAI_batch_query_with_file(const char** queries, size_t query_count, const char* file_id, invoice* buffer, importer::batch_query_response_handler response_handler) { const char *api_key = administration::get_active_ai_service().api_key_public; httplib::SSLClient cli("api.openai.com", 443); @@ -94,7 +94,7 @@ static bool _openAI_batch_query_with_file(const char** queries, size_t query_cou return 1; } -static bool _openAI_query_with_file(const char* query, size_t query_length, char* file_id, char** response) +static bool _openAI_query_with_file(const char* query, size_t query_length, const char* file_id, char** response) { const char *api_key = administration::get_active_ai_service().api_key_public; @@ -133,7 +133,7 @@ static bool _openAI_query_with_file(const char* query, size_t query_length, char return 1; } -static bool _openAI_upload_file(char* file_path, char* file_id, size_t file_id_len) +static bool _openAI_upload_file(const char* file_path, char* file_id, size_t file_id_len) { const char *api_key = administration::get_active_ai_service().api_key_public; const char *filename = strops::get_filename(file_path); -- cgit v1.2.3-70-g09d2