summaryrefslogtreecommitdiff
path: root/src/ai_providers/openAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai_providers/openAI.cpp')
-rw-r--r--src/ai_providers/openAI.cpp4
1 files changed, 2 insertions, 2 deletions
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");