summaryrefslogtreecommitdiff
path: root/src/ai_providers
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-05 14:37:11 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-05 14:37:11 +0200
commit0a2b0e347d926ac0f29c9dd0f49e00634e822d0e (patch)
treef84ecc1e559227b1435f6647b36d150f4b101585 /src/ai_providers
parentcd827834f9ee329c27b82d987f0d1d48a854a954 (diff)
namespace administration
Diffstat (limited to 'src/ai_providers')
-rw-r--r--src/ai_providers/DeepSeek.cpp2
-rw-r--r--src/ai_providers/openAI.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ai_providers/DeepSeek.cpp b/src/ai_providers/DeepSeek.cpp
index f46c62f..5a378dd 100644
--- a/src/ai_providers/DeepSeek.cpp
+++ b/src/ai_providers/DeepSeek.cpp
@@ -35,7 +35,7 @@ static bool _DeepSeek_query_with_file(char* query, size_t query_length, char* fi
(void)query_length;
assert(query_buffer);
- const char *api_key = administration_get_ai_service().api_key_public;
+ const char *api_key = administration::get_ai_service().api_key_public;
httplib::SSLClient cli("api.deepseek.com");
//cli.enable_server_certificate_verification(false);
diff --git a/src/ai_providers/openAI.cpp b/src/ai_providers/openAI.cpp
index b9276bc..bbe9f8f 100644
--- a/src/ai_providers/openAI.cpp
+++ b/src/ai_providers/openAI.cpp
@@ -29,7 +29,7 @@
static bool _openAI_query_with_file(char* query, size_t query_length, char* file_id, char** response)
{
#if 1
- const char *api_key = administration_get_ai_service().api_key_public;
+ const char *api_key = administration::get_ai_service().api_key_public;
httplib::SSLClient cli("api.openai.com", 443);
//cli.enable_server_certificate_verification(false);
@@ -73,7 +73,7 @@ static bool _openAI_query_with_file(char* query, size_t query_length, char* file
static bool _openAI_upload_file(char* file_path, char* file_id, size_t file_id_len)
{
- const char *api_key = administration_get_ai_service().api_key_public;
+ const char *api_key = administration::get_ai_service().api_key_public;
const char *filename = strops::get_filename(file_path);
FILE* orig_file = fopen(file_path, "rb");