diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 14:37:11 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 14:37:11 +0200 |
| commit | 0a2b0e347d926ac0f29c9dd0f49e00634e822d0e (patch) | |
| tree | f84ecc1e559227b1435f6647b36d150f4b101585 /src/ai_providers/openAI.cpp | |
| parent | cd827834f9ee329c27b82d987f0d1d48a854a954 (diff) | |
namespace administration
Diffstat (limited to 'src/ai_providers/openAI.cpp')
| -rw-r--r-- | src/ai_providers/openAI.cpp | 4 |
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"); |
