diff options
Diffstat (limited to 'src/providers/openAI.cpp')
| -rw-r--r-- | src/providers/openAI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
