This commit is contained in:
2025-04-12 15:10:13 -05:00
parent 2261abfe36
commit e1b93ea51b
2 changed files with 41 additions and 28 deletions

View File

@@ -90,7 +90,7 @@ void Ollama::run() {
//curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2L);
curl_easy_setopt(curl, CURLOPT_POST, 1L);
curl_easy_setopt(curl, CURLOPT_COPYPOSTFIELDS, sendObj.dump().c_str());
result = std::async(curl_easy_perform, curl);
result = std::async(std::launch::async, curl_easy_perform, curl);
inFlight = true;
}