mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-07-22 12:22:20 +00:00
fmt
This commit is contained in:
@@ -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.")
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user