Disable AI model download #1791

This commit is contained in:
ilike2burnthing authored and GitHub committed 2026-10-18 00:47:04 +01:00
1 parent 993d0a976d
commit 4df093c62e
1 file changed
+3
+3
View File
@@ -155,6 +155,9 @@ def get_webdriver(proxy: dict = None) -> WebDriver:
options.add_argument('--ignore-ssl-errors')
# disable breaking popup
options.add_argument("--disable-features=LocalNetworkAccessChecks")
# disable AI model download
options.add_argument("--disable-features=OptimizationGuideOnDeviceModel")
options.add_argument("--disable-features=GlicActor,GlicActorUi,PromptAPIForGeminiNano,PromptAPIX,PromptAPINoTranslation,SummarizationAPIForGeminiNano,WriterAPIForGeminiNano,TranslationAPI,LanguageDetectionAPI,AIPromptAPI,AIRewriteAPI,AIWritingAssistant,AIGenerativeSuggestions,AIGeneratedFlags,AICompositionFeature,HistoryAI,TabOrganizer,SmartSuggestion")
language = os.environ.get('LANG', None)
if language is not None: