first commit

This commit is contained in:
xuyong
2026-04-15 21:35:26 +08:00
commit 7097fa6b44
69 changed files with 5642 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from sqlalchemy import select
from sqlalchemy.ext.asyncio import AsyncSession
from app.models import ModelPricing
class ModelService:
@staticmethod
async def list_models(db: AsyncSession) -> list:
result = await db.execute(
select(ModelPricing)
.where(ModelPricing.status == "available")
.order_by(ModelPricing.provider, ModelPricing.model_name)
)
return result.scalars().all()