summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/DeepSeek.cpp4
-rw-r--r--src/providers/MailerSend.cpp2
-rw-r--r--src/providers/openAI.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/providers/DeepSeek.cpp b/src/providers/DeepSeek.cpp
index 2fc73c9..7c695fb 100644
--- a/src/providers/DeepSeek.cpp
+++ b/src/providers/DeepSeek.cpp
@@ -25,7 +25,7 @@
#define QUERY_BUFFER_SIZE 1000000
char* query_buffer = 0;
-static bool _DeepSeek_query_with_file(const char* query, size_t query_length, char* file_id, char** response)
+static bool _DeepSeek_query_with_file(const char* query, size_t query_length, const char* file_id, char** response)
{
(void)file_id;
(void)query_length;
@@ -74,7 +74,7 @@ static bool _DeepSeek_query_with_file(const char* query, size_t query_length, ch
return 1;
}
-static bool _DeepSeek_upload_file(char* file_path, char* file_id, size_t file_id_len)
+static bool _DeepSeek_upload_file(const char* file_path, char* file_id, size_t file_id_len)
{
(void)file_id;
(void)file_id_len;
diff --git a/src/providers/MailerSend.cpp b/src/providers/MailerSend.cpp
index ab07907..1758ac8 100644
--- a/src/providers/MailerSend.cpp
+++ b/src/providers/MailerSend.cpp
@@ -22,7 +22,7 @@
#include "logger.hpp"
#include "exporter.hpp"
-bool _MailerSend_send_email(char* sender, char* recipient, const char* subject, const char* text)
+bool _MailerSend_send_email(const char* sender, const char* recipient, const char* subject, const char* text)
{
#if SIMULATE_EMAIL
usleep(1000 * 1000);
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);