fix: 供应商排行JOIN表名 llmprovider→modelprovider
This commit is contained in:
parent
47278c16ec
commit
aeb5950cd0
@ -249,7 +249,7 @@ async def get_top_providers(env, sor, limit=5):
|
||||
sql = """SELECT f.providerid, COUNT(*) as cnt, COALESCE(SUM(f.amount_cny), 0) as total_amount,
|
||||
COALESCE(p.name, f.providerid) as provider_name
|
||||
FROM dm_model_call_fact f
|
||||
LEFT JOIN llmprovider p ON p.id = f.providerid
|
||||
LEFT JOIN modelprovider p ON p.id = f.providerid
|
||||
WHERE f.providerid IS NOT NULL
|
||||
GROUP BY f.providerid ORDER BY total_amount DESC LIMIT ${limit}$"""
|
||||
recs = await sor.sqlExe(sql, {'limit': limit})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user