fix: clear session headers on endpoint deletion (#477)

This commit is contained in:
Abhinav
2026-06-01 18:49:54 +05:30
committed by GitHub
parent 5ed9b74cd0
commit 9e8de43f25

View File

@@ -1382,6 +1382,7 @@ def setup_model_routes(model_discovery):
if _session_uses_endpoint_url(row.endpoint_url or "", base_url):
row.endpoint_url = ""
row.model = ""
row.headers = {}
row.updated_at = datetime.utcnow()
cleared += 1
return cleared