This commit is contained in:
9qeklajc
2026-01-10 21:34:48 +01:00
parent 917a4d32b1
commit 88bcc0edcb
3 changed files with 10 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
import httpx
import sys
import json
import sys
import httpx
def create_child_keys(base_url, api_key, count=3):
@@ -42,3 +43,4 @@ if __name__ == "__main__":
print(json.dumps(keys, indent=2))
else:
print("\nNo child keys were created.")

View File

@@ -15,8 +15,7 @@ from ..discovery import providers_cache_refresher, providers_router
from ..nip91 import announce_provider
from ..payment.models import models_router, update_sats_pricing
from ..payment.price import update_prices_periodically
from ..proxy import (initialize_upstreams, proxy_router,
refresh_model_maps_periodically)
from ..proxy import initialize_upstreams, proxy_router, refresh_model_maps_periodically
from ..wallet import periodic_payout
from .admin import admin_router
from .db import create_session, init_db, run_migrations

View File

@@ -1,9 +1,11 @@
import pytest
import secrets
import pytest
from fastapi import HTTPException
from routstr.core.db import ApiKey
from routstr.auth import adjust_payment_for_tokens, pay_for_request
from routstr.balance import create_child_key
from routstr.auth import pay_for_request, adjust_payment_for_tokens
from routstr.core.db import ApiKey
from routstr.core.settings import settings