{"record":{"id":"c4528be550eef2ca","repo":"odysseus-dev/odysseus","slug":"endpoint-is-not-configured-with-a-usable-model","errorCode":null,"errorMessage":"Endpoint is not configured with a usable model.","messagePattern":"Endpoint is not configured with a usable model\\.","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"routes/research/research_routes.py","lineNumber":525,"sourceCode":"                        raise\n                    except Exception:\n                        pass\n                user = tool_owner\n        session_id = f\"rp-{uuid.uuid4().hex[:12]}\"\n\n        if body.endpoint_id:\n            from src.database import SessionLocal\n            db = SessionLocal()\n            try:\n                # Owner-scoped: never resolve another user's private endpoint\n                # (and its decrypted api_key / internal base_url). A scoped miss\n                # reads as 404 so the endpoint's existence isn't revealed.\n                ep = _owned_enabled_endpoint(db, user, body.endpoint_id)\n                if not ep:\n                    raise HTTPException(404, \"Endpoint not found or disabled\")\n                resolved = _resolve_endpoint_runtime(ep, owner=user, model=body.model)\n                if not resolved:\n                    raise HTTPException(400, \"Endpoint is not configured with a usable model.\")\n                ep_url, ep_model, ep_headers = resolved\n            finally:\n                db.close()\n        else:\n            ep_url, ep_model, ep_headers = resolve_endpoint(\"research\", owner=user)\n            if not ep_url:\n                ep_url, ep_model, ep_headers = resolve_endpoint(\"utility\", owner=user)\n            # When neither research nor utility is configured, use the user's\n            # configured DEFAULT model (default_endpoint_id/default_model) rather\n            # than arbitrarily grabbing the first enabled endpoint's first model\n            # (which surfaced gpt-3.5). \"Default\" should mean the default model.\n            if not ep_url:\n                ep_url, ep_model, ep_headers = resolve_endpoint(\"default\", owner=user)\n            if not ep_url:\n                ep_url, ep_model, ep_headers = resolve_endpoint(\"chat\", owner=user)\n            if not ep_url:\n                from src.database import SessionLocal\n                db = SessionLocal()","sourceCodeStart":507,"sourceCodeEnd":543,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/research/research_routes.py#L507-L543","documentation":"Error \"Endpoint is not configured with a usable model.\" thrown in odysseus-dev/odysseus.","triggerScenarios":"Triggered when the corresponding server-side validation or runtime check at the recorded location rejects the request or operation and returns this error message to the caller.","commonSituations":"See trigger scenarios.","solutions":["Edit the endpoint and select a usable model.","Pick a different endpoint that has a model configured."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f9235ebbf13f693a6fd29ce70b097f6ec83705bf","analyzedAt":"2026-08-14T21:47:48.359Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}