mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 20:28:23 +00:00
small fixes
This commit is contained in:
@@ -162,7 +162,7 @@ Once built, the UI is automatically served by the FastAPI backend:
|
|||||||
|
|
||||||
- **Dashboard**: `http://localhost:8000/`
|
- **Dashboard**: `http://localhost:8000/`
|
||||||
- **Login**: `http://localhost:8000/login`
|
- **Login**: `http://localhost:8000/login`
|
||||||
- **Models Management**: `http://localhost:8000/model
|
- **Models Management**: `http://localhost:8000/model`
|
||||||
- **Providers Management**: `http://localhost:8000/providers`
|
- **Providers Management**: `http://localhost:8000/providers`
|
||||||
- **Settings**: `http://localhost:8000/settings`
|
- **Settings**: `http://localhost:8000/settings`
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ from sqlmodel import col, update
|
|||||||
from .core import get_logger
|
from .core import get_logger
|
||||||
from .core.db import ApiKey, AsyncSession
|
from .core.db import ApiKey, AsyncSession
|
||||||
from .core.settings import settings
|
from .core.settings import settings
|
||||||
from .payment.cost_caculation import (
|
from .payment.cost_calculation import (
|
||||||
CostData,
|
CostData,
|
||||||
CostDataError,
|
CostDataError,
|
||||||
MaxCostData,
|
MaxCostData,
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ def resolve_bootstrap() -> Settings:
|
|||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
# Map COST_PER_1K_* -> CUSTOM_PER_1K_*
|
# Map COST_PER_1K_* -> FIXED_PER_1K_*
|
||||||
if (
|
if (
|
||||||
"COST_PER_1K_INPUT_TOKENS" in os.environ
|
"COST_PER_1K_INPUT_TOKENS" in os.environ
|
||||||
and "FIXED_PER_1K_INPUT_TOKENS" not in os.environ
|
and "FIXED_PER_1K_INPUT_TOKENS" not in os.environ
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from .cost_caculation import CostData, CostDataError, MaxCostData, calculate_cost
|
from .cost_calculation import CostData, CostDataError, MaxCostData, calculate_cost
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"CostData",
|
"CostData",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ from fastapi.responses import Response, StreamingResponse
|
|||||||
from ..auth import adjust_payment_for_tokens
|
from ..auth import adjust_payment_for_tokens
|
||||||
from ..core import get_logger
|
from ..core import get_logger
|
||||||
from ..core.db import ApiKey, AsyncSession, create_session
|
from ..core.db import ApiKey, AsyncSession, create_session
|
||||||
from ..payment.cost_caculation import (
|
from ..payment.cost_calculation import (
|
||||||
CostData,
|
CostData,
|
||||||
CostDataError,
|
CostDataError,
|
||||||
MaxCostData,
|
MaxCostData,
|
||||||
|
|||||||
Reference in New Issue
Block a user