Thank you. After removing all instances of
window.ai, and
self.ai, the problem is solved and the feature is working correctly now.
For your team's context: initially, I had Claude directly scrape content from the internet and generate code according to my requirements. This step included `
window.ai`. Then I downloaded the entire document (
https://developer.chrome.com/docs/ai/summarizer-api#batch_summarization) and had Claude correct it based on the document content. At this point, `
self.ai` appeared. We then read the document and checked the code ourselves, but because of the following code snippet, we couldn't make a clear judgment, so we tacitly allowed AI to use `
self.ai`.