fix: fake models

This commit is contained in:
Brooklyn Nicholson 2026-04-13 14:57:42 -05:00
parent 77b97b810a
commit ebe3270430
6 changed files with 40 additions and 38 deletions

View file

@ -660,12 +660,12 @@ def switch_model(
api_key=api_key,
base_url=base_url,
)
except Exception:
except Exception as e:
validation = {
"accepted": True,
"persist": True,
"accepted": False,
"persist": False,
"recognized": False,
"message": None,
"message": f"Could not validate `{new_model}`: {e}",
}
if not validation.get("accepted"):