From 0dc33a4dd49eb560e98b24090969fd618a4c6198 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 18 Oct 2025 08:58:32 +0200 Subject: refactor memops --- src/ai_providers/openAI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ai_providers/openAI.cpp') diff --git a/src/ai_providers/openAI.cpp b/src/ai_providers/openAI.cpp index fba050c..0afd2e7 100644 --- a/src/ai_providers/openAI.cpp +++ b/src/ai_providers/openAI.cpp @@ -52,14 +52,14 @@ static bool _openAI_query_with_file(char* query, size_t query_length, char* file char* response_body = (char*)res->body.c_str(); *response = (char*)memops::alloc(100000); - memset(*response, 0, 100000); + memops::zero(*response, 100000); strncpy(*response, response_body, 100000); strops::get_json_value(*response, "text", *response, 100000); *response = strops::unprep_str_from_json(*response); #else *response = (char*)memops::alloc(100000); - memset(*response, 0, 100000); + memops::zero(*response, 100000); strops::copy(*response, " urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0 urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 492043632 2024-09-01 2024-09-01 380 USD Final invoice do:team:67840ecb-44e2-472e-bc45-801bd4e1f1fe DigitalOcean LLC 101 Avenue of the Americas 2nd Floor New York 10013 NY US EU528002224 VAT DigitalOcean LLC My Team Keerderstraat 81 Maastricht 6226 XW LI NL VAT aldrikboy@gmail.com 492043632 3.49 15.60 3.28 VAT 1.00 0.21 VAT 16.60 16.60 20.09 20.09 1 16.60 false Discount Product Usage Charges Internal Tax Rate ID VAT ", 100000); #endif -- cgit v1.2.3-70-g09d2