Skip to content

Commit cf0a938

Browse files
authoredFeb 14, 2025
Merge pull request #852 from 10up/fix/azure-ai-vision-auth
Ensure the request to authenticate Azure AI Vision credentials works
2 parents 372a8e6 + 69c22a3 commit cf0a938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎includes/Classifai/Providers/Azure/ComputerVision.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ protected function prep_api_url( ?\Classifai\Features\Feature $feature = null ):
749749
protected function authenticate_credentials( string $url, string $api_key ) {
750750
$rtn = false;
751751
$request = wp_remote_post(
752-
trailingslashit( $url ) . $this->analyze_url,
752+
add_query_arg( 'features', 'caption', trailingslashit( $url ) . $this->analyze_url ),
753753
[
754754
'headers' => [
755755
'Ocp-Apim-Subscription-Key' => $api_key,

0 commit comments

Comments
 (0)