Skip to content

Commit 2e8140d

Browse files
committed
rm models.example usage
1 parent ba98748 commit 2e8140d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

router/payment/models.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,6 @@ def load_models() -> list[Model]:
110110
print(f"Error loading models from {models_path}: {e}")
111111
# Fall through to auto-generation
112112

113-
# Check for example file as fallback
114-
example = Path(__file__).resolve().parent.parent.parent / "models.example.json"
115-
if example.exists():
116-
print(f"Loading models from example file: {example}")
117-
try:
118-
with example.open("r") as f:
119-
data = json.load(f)
120-
return [Model(**model) for model in data.get("models", [])]
121-
except Exception as e:
122-
print(f"Error loading models from {example}: {e}")
123-
# Fall through to auto-generation
124-
125113
# Auto-generate models from OpenRouter API
126114
print("Auto-generating models from OpenRouter API")
127115
source_filter = os.getenv("SOURCE")

0 commit comments

Comments
 (0)