From 0a2b0e347d926ac0f29c9dd0f49e00634e822d0e Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 5 Oct 2025 14:37:11 +0200 Subject: namespace administration --- src/ai_providers/DeepSeek.cpp | 2 +- src/ai_providers/openAI.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ai_providers') 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"); -- cgit v1.2.3-70-g09d2