{"record":{"id":"c4e0939b85d14bf6","repo":"xtekky/gpt4free","slug":"model-model-not-found-c4e093","errorCode":null,"errorMessage":"Model {model} not found.","messagePattern":"Model (.+?) not found\\.","errorType":"exception","errorClass":"ModelNotFoundError","httpStatus":null,"severity":"error","filePath":"g4f/Provider/search/GoogleSearch.py","lineNumber":33,"sourceCode":"    label = \"Google Search\"\n    url = \"https://google.com\"\n    working = has_nodriver\n    use_nodriver = True\n\n    @classmethod\n    async def create_async_generator(\n        cls,\n        model: str,\n        messages: Messages,\n        browser: Browser = None,\n        proxy: str = None,\n        timeout: int = 300,\n        **kwargs,\n    ) -> AsyncResult:\n        if not has_nodriver:\n            raise MissingRequirementsError(\"Google requires a browser to be installed.\")\n        if not cls.working:\n            raise ModelNotFoundError(f\"Model {model} not found.\")\n        try:\n            stop_browser = None\n            if browser is None:\n                browser, stop_browser = await get_nodriver(proxy=proxy, timeout=timeout)\n            tab = await browser.get(cls.url)\n            await asyncio.sleep(3)\n            while True:\n                try:\n                    await tab.wait_for('[aria-modal=\"true\"]', timeout=10)\n                    await tab.wait_for(\n                        '[aria-modal=\"true\"][style*=\"display: none\"]', timeout=timeout\n                    )\n                except Exception as e:\n                    break\n                break\n            element = await tab.wait_for(\"textarea\")\n            await element.send_keys(get_last_user_message(messages))\n            button = await tab.find(\"Google Suche\")","sourceCodeStart":15,"sourceCodeEnd":51,"githubUrl":"https://github.com/xtekky/gpt4free/blob/973504e1770928ed5fb82f43da528f441ad9ddc3/g4f/Provider/search/GoogleSearch.py#L15-L51","documentation":"Error \"Model {model} not found.\" thrown in xtekky/gpt4free.","triggerScenarios":"Thrown at g4f/Provider/search/GoogleSearch.py:33 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass one of the models listed by the GoogleSearch provider (check cls.models).","Omit the model argument to use the provider's default model."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"973504e1770928ed5fb82f43da528f441ad9ddc3","analyzedAt":"2026-08-14T23:45:32.408Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}