xtekky/gpt4free · error · ModelNotFoundError
Model {model} not found.
Error message
Model {model} not found. What it means
Error "Model {model} not found." thrown in xtekky/gpt4free.
Source
Thrown at g4f/Provider/search/GoogleSearch.py:33
label = "Google Search"
url = "https://google.com"
working = has_nodriver
use_nodriver = True
@classmethod
async def create_async_generator(
cls,
model: str,
messages: Messages,
browser: Browser = None,
proxy: str = None,
timeout: int = 300,
**kwargs,
) -> AsyncResult:
if not has_nodriver:
raise MissingRequirementsError("Google requires a browser to be installed.")
if not cls.working:
raise ModelNotFoundError(f"Model {model} not found.")
try:
stop_browser = None
if browser is None:
browser, stop_browser = await get_nodriver(proxy=proxy, timeout=timeout)
tab = await browser.get(cls.url)
await asyncio.sleep(3)
while True:
try:
await tab.wait_for('[aria-modal="true"]', timeout=10)
await tab.wait_for(
'[aria-modal="true"][style*="display: none"]', timeout=timeout
)
except Exception as e:
break
break
element = await tab.wait_for("textarea")
await element.send_keys(get_last_user_message(messages))
button = await tab.find("Google Suche")View on GitHub (pinned to 973504e177)
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.
When it happens
Trigger: Thrown at g4f/Provider/search/GoogleSearch.py:33 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of xtekky/gpt4free@973504e177 (2026-08-14).
Data as JSON: /api/errors/c4e0939b85d14bf6.
Report an issue: GitHub.