diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 11:45:12 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 11:45:12 +0100 |
| commit | a65e876f3277a7d7fca6e5129ac3e200dae2d0dc (patch) | |
| tree | 3d777dca9e07bf1fbd4a8641e1a4719094ac7789 /src/providers/DeepSeek.cpp | |
| parent | 8bdab613289e2626173de8bff31e7078dd03a16e (diff) | |
save all ai service configs
Diffstat (limited to 'src/providers/DeepSeek.cpp')
| -rw-r--r-- | src/providers/DeepSeek.cpp | 4 |
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)); |
