summaryrefslogtreecommitdiff
path: root/src/providers/DeepSeek.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/DeepSeek.cpp')
-rw-r--r--src/providers/DeepSeek.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/DeepSeek.cpp b/src/providers/DeepSeek.cpp
index c34e299..8a5b42e 100644
--- a/src/providers/DeepSeek.cpp
+++ b/src/providers/DeepSeek.cpp
@@ -30,7 +30,7 @@ static bool _DeepSeek_query_with_file(const char* query, size_t query_length, ch
(void)query_length;
assert(query_buffer);
- const char *api_key = administration::get_ai_service().api_key_public;
+ const char *api_key = administration::get_active_ai_service().api_key_public;
httplib::SSLClient cli("api.deepseek.com");
//cli.enable_server_certificate_verification(false);
@@ -46,7 +46,7 @@ static bool _DeepSeek_query_with_file(const char* query, size_t query_length, ch
size_t body_size = file_size + QUERY_BUFFER_SIZE;
char* body = (char*)memops::alloc(body_size);
strops::format(body, body_size,
- "{\"model\":\"%s\", \"messages\": [ { \"role\": \"user\", \"content\": \"%s\" } ] }", administration::get_ai_service().model_name, query_escaped);
+ "{\"model\":\"%s\", \"messages\": [ { \"role\": \"user\", \"content\": \"%s\" } ] }", administration::get_active_ai_service().model_name, query_escaped);
httplib::Headers headers;
headers.insert(std::make_pair("Authorization", std::string("Bearer ") + api_key));