Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Feb 13, 2025
1 parent 6798e5f commit 69c22a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Classifai/Providers/Azure/ComputerVision.php
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ protected function prep_api_url( ?\Classifai\Features\Feature $feature = null ):
protected function authenticate_credentials( string $url, string $api_key ) {
$rtn = false;
$request = wp_remote_post(
trailingslashit( $url ) . $this->analyze_url . '&features=caption',
add_query_arg( 'features', 'caption', trailingslashit( $url ) . $this->analyze_url ),
[
'headers' => [
'Ocp-Apim-Subscription-Key' => $api_key,
Expand Down

0 comments on commit 69c22a3

Please sign in to comment.