@@ -90,7 +90,7 @@ acl_fetch_anthropic(config_t *config, const char *prompt, int history_length)
9090{
9191 CURLcode res ;
9292
93- if (!curl && initialize (config ) < 0 )
93+ if (!acl_curl && initialize (config ) < 0 )
9494 return NULL ;
9595
9696 if (config -> general_verbose )
@@ -166,13 +166,13 @@ acl_fetch_anthropic(config_t *config, const char *prompt, int history_length)
166166
167167 acl_write_log (config , json_request .ptr );
168168
169- curl_easy_setopt (curl , CURLOPT_URL , config -> anthropic_endpoint );
170- curl_easy_setopt (curl , CURLOPT_HTTPHEADER , headers );
171- curl_easy_setopt (curl , CURLOPT_WRITEFUNCTION , acl_string_write );
172- curl_easy_setopt (curl , CURLOPT_WRITEDATA , & json_response );
173- curl_easy_setopt (curl , CURLOPT_POSTFIELDS , json_request .ptr );
169+ curl_easy_setopt (acl_curl , CURLOPT_URL , config -> anthropic_endpoint );
170+ curl_easy_setopt (acl_curl , CURLOPT_HTTPHEADER , headers );
171+ curl_easy_setopt (acl_curl , CURLOPT_WRITEFUNCTION , acl_string_write );
172+ curl_easy_setopt (acl_curl , CURLOPT_WRITEDATA , & json_response );
173+ curl_easy_setopt (acl_curl , CURLOPT_POSTFIELDS , json_request .ptr );
174174
175- res = curl_easy_perform (curl );
175+ res = curl_easy_perform (acl_curl );
176176
177177 if (res != CURLE_OK ) {
178178 free (json_request .ptr );
0 commit comments