diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2025-12-27 16:01:51 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2025-12-27 16:01:51 +0100 |
| commit | 28c730a2e35ce81634dd4d47bf8e92e4552ec17c (patch) | |
| tree | c1aa994a9c241972f81e1ab8403a6b1dc37f14da /src/ai_providers | |
| parent | 178e8c135a60e9f206dcfbad8bab7bb868e6a294 (diff) | |
fix warnings
Diffstat (limited to 'src/ai_providers')
| -rw-r--r-- | src/ai_providers/DeepSeek.cpp | 2 | ||||
| -rw-r--r-- | src/ai_providers/openAI.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ai_providers/DeepSeek.cpp b/src/ai_providers/DeepSeek.cpp index ede31f8..c34e299 100644 --- a/src/ai_providers/DeepSeek.cpp +++ b/src/ai_providers/DeepSeek.cpp @@ -24,7 +24,7 @@ #define QUERY_BUFFER_SIZE 1000000 char* query_buffer = 0; -static bool _DeepSeek_query_with_file(char* query, size_t query_length, char* file_id, char** response) +static bool _DeepSeek_query_with_file(const char* query, size_t query_length, char* file_id, char** response) { (void)file_id; (void)query_length; diff --git a/src/ai_providers/openAI.cpp b/src/ai_providers/openAI.cpp index 3e5104d..d1495dc 100644 --- a/src/ai_providers/openAI.cpp +++ b/src/ai_providers/openAI.cpp @@ -24,7 +24,7 @@ #include "logger.hpp" #include "importer.hpp" -static bool _openAI_batch_query_with_file(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, char* file_id, invoice* buffer, importer::batch_query_response_handler response_handler) { const char *api_key = administration::get_ai_service().api_key_public; httplib::SSLClient cli("api.openai.com", 443); @@ -94,7 +94,7 @@ static bool _openAI_batch_query_with_file(char** queries, size_t query_count, ch return 1; } -static bool _openAI_query_with_file(char* query, size_t query_length, char* file_id, char** response) +static bool _openAI_query_with_file(const char* query, size_t query_length, char* file_id, char** response) { const char *api_key = administration::get_ai_service().api_key_public; @@ -102,7 +102,7 @@ static bool _openAI_query_with_file(char* query, size_t query_length, char* file //cli.enable_server_certificate_verification(false); char* query_escaped = strops::prep_str_for_json(query, query_length); - memops::unalloc(query); + //memops::unalloc(query); size_t body_size = query_length + 200; char* body = (char*)memops::alloc(body_size); |
