AiBrow
  • Welcome
  • AiBrow web API
    • Getting started
    • Feature comparison
  • AiBrow Extension
    • Getting started
    • Web polyfill
    • Helping users install the AiBrow extension
    • Remove the on-device helper or models
  • Examples
    • Embedding API
    • LanguageDetector API
    • LanguageModel API
    • Rewriter API
    • Summarizer API
    • Translator API
    • Writer API
    • Using different models
    • Model download feedback
    • Getting JSON output
  • API Reference
    • AI
      • AIBrow
      • BrowserAI
      • AIBrowWeb
    • AiBrow
      • Embedding
      • LanguageDetector
      • LanguageModel
      • Rewriter
      • Summarizer
      • Translator
      • Writer
    • Types
      • AIModelAvailability
      • AIModelCoreCompatibility
      • AIModelDtype
      • AIModelGpuEngine
      • AICreateMonitor
      • EmbeddingCreateOptions
      • LanguageDetectorCreateOptions
      • LanguageDetectorDetectResult
      • LanguageModelCreateOptions
      • RewriterCreateOptions
      • RewriterFormat
      • RewriterLength
      • RewriterTone
      • SummarizerCreateOptions
      • SummarizerFormat
      • SummarizerLength
      • SummarizerType
      • TranslatorCreateOptions
      • WriterCreateOptions
      • WriterFormat
      • WriterLength
      • WriterTone
    • Models
Powered by GitBook
On this page
  1. AiBrow Extension

Web polyfill

Not all browsers support the on-device AI APIs, so when AiBrow is installed and those APIs are unavailable, it automatically polyfills these fields. The API should provide the same level of compatibility as the native built-in APIs, and the user will be guided to complete the extension install at use.

If you want to check if the APIs have been polyfilled, you can check the aibrow property on each:

window.LanguageModel?.aibrow === true // aibrow has polyfilled window.LanguageModel
window.LanguageDetector?.aibrow === true // aibrow has polyfilled window.LanguageDetector
window.Rewriter?.aibrow === true // aibrow has polyfilled window.Rewriter
window.Summarizer?.aibrow === true // aibrow has polyfilled window.SummarizeruageModel
window.Translator?.aibrow === true // aibrow has polyfilled window.Translator
window.Writer?.aibrow === true // aibrow has polyfilled window.Writer
PreviousGetting startedNextHelping users install the AiBrow extension

Last updated 12 days ago