Skip to content

Commit dd9a133

Browse files
authored
Merge pull request #105 from Routstr/fix-models-auto-fetch
Fix models auto fetch
2 parents 2cfd537 + 2e8140d commit dd9a133

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ wallet.sqlite3
1010
*models.json
1111
.cashu
1212
.dockerignore
13+
relay-data
1314

1415
compose.override.yml
1516

router/core/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ async def lifespan(_: FastAPI) -> AsyncGenerator[None, None]:
7777
@app.get("/", include_in_schema=False)
7878
@app.get("/v1/info")
7979
async def info() -> dict:
80-
logger.info("Info endpoint accessed")
8180
return {
8281
"name": app.title,
8382
"description": app.description,

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)