-
Notifications
You must be signed in to change notification settings - Fork 853
chore: Remove Bing image search APIs #2446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
chore: Remove Bing image search APIs #2446
Conversation
|
Hey @ranadeepsingh 👋! We use semantic commit messages to streamline the release process. Examples of commit messages with semantic prefixes:
To test your commit locally, please follow our guild on building from source. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes Bing Image Search API tests and pipeline configuration in response to Microsoft's retirement of Bing Search APIs on August 11, 2025, which are now returning 410 (Gone) status codes.
Key Changes:
- Removed Bing Image Search test suite (ImageSearchSuite.scala)
- Removed Bing package from pipeline test configuration
- Removed Bing Web Search integration from Langchain example notebook
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
pipeline.yaml |
Removes the bing package entry from the test job matrix to stop running failing Bing-related tests |
cognitive/src/test/scala/com/microsoft/azure/synapse/ml/services/bing/ImageSearchSuite.scala |
Deletes the entire Bing Image Search test suite that was failing with 410 status codes |
docs/Explore Algorithms/OpenAI/Langchain.ipynb |
Removes Bing Web Search tool integration from the LangChain example and simplifies the paper summarization workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| anomaly: | ||
| PACKAGE: "services.anomaly" | ||
| FLAKY: "true" |
Copilot
AI
Nov 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal of Bing Image Search appears incomplete. While this PR removes the test configuration and the test file ImageSearchSuite.scala, the following related files and references still exist in the codebase and should also be removed:
Implementation files:
cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/bing/BingImageSearch.scala(310 lines)cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/bing/ImageSearchSchemas.scala(93 lines)cognitive/src/main/python/synapse/ml/services/bing/BingImageSearch.py(48 lines)cognitive/src/main/python/synapse/ml/services/bing/__init__.pycognitive/src/main/python/synapse/ml/cognitive/bing.py(deprecation wrapper)
Documentation files that reference BingImageSearch:
docs/Explore Algorithms/AI Services/Overview.ipynbdocs/Explore Algorithms/AI Services/Quickstart - Analyze Celebrity Quotes.ipynbdocs/Explore Algorithms/Responsible AI/Quickstart - Snow Leopard Detection.ipynbdocs/Quick Examples/transformers/cognitive/_BingImageSearch.mddocs/Quick Examples/transformers/transformers_cognitive.md
Test files using BingImageSearch utilities:
cognitive/src/test/scala/com/microsoft/azure/synapse/ml/services/form/FormRecognizerSuite.scala(usesBingImageSearch.downloadFromUrls)cognitive/src/test/scala/com/microsoft/azure/synapse/ml/services/vision/ComputerVisionSuite.scala(usesBingImageSearch.downloadFromUrlsin multiple test suites)
Note: The downloadFromUrls utility function is still being used by other tests. You'll need to either: (1) keep this utility function separately, or (2) replace it with an alternative method to download images for testing purposes.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2446 +/- ##
==========================================
- Coverage 84.38% 83.68% -0.70%
==========================================
Files 335 334 -1
Lines 17690 17577 -113
Branches 1619 1597 -22
==========================================
- Hits 14928 14710 -218
- Misses 2762 2867 +105 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This reverts commit 9cb02c9.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Related Issues/PRs
Bing Search APIs were retired on August 11, 2025
What changes are proposed in this pull request?
Removing Unittest bing as the existing tests are returning error with 410 status code which indicates the API has been fulled removed.

How is this patch tested?
Does this PR change any dependencies?
Does this PR add a new feature? If so, have you added samples on website?
website/docs/documentationfolder.Make sure you choose the correct class
estimators/transformersand namespace.DocTablepoints to correct API link.yarn run startto make sure the website renders correctly.<!--pytest-codeblocks:cont-->before each python code blocks to enable auto-tests for python samples.WebsiteSamplesTestsjob pass in the pipeline.