← All changes
|
src/App/AIProviders/Azure/AzureComputerVisionCaptionsResponse.php
+1
-1
2.4.1
→
2.5.2
View file →
| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | */ |
| 30 | 30 | public function response(string $imageUrl): string |
| 31 | 31 | { |
| 32 | 32 | $response = wp_remote_post( |
| 33 | - PluginOptions::endpointAzureComputerVision() . 'computervision/imageanalysis:analyze?api-version=2023-02-01-preview&features=caption&language=en&gender-neutral-caption=False', | |
| 33 | + PluginOptions::endpointAzureComputerVision() . 'computervision/imageanalysis:analyze?api-version='.Constants::AATXT_AZURE_COMPUTER_VISION_API_VERSION.'&features=caption&language=en&gender-neutral-caption=False', | |
| 34 | 34 | [ |
| 35 | 35 | 'headers' => [ |
| 36 | 36 | 'content-type' => 'application/json', |
| 37 | 37 | 'Ocp-Apim-Subscription-Key' => PluginOptions::apiKeyAzureComputerVision(), |