feat(balance): pass llmid to finalize_balance for cold-start max_cost
This commit is contained in:
parent
a04b99c6c3
commit
947b83ae65
@ -1627,7 +1627,8 @@ WHERE resource_ref_id = ${llm_id}$ AND product_type = 'llm_model' LIMIT 1"""
|
|||||||
luid = getattr(llmusage, 'id', None)
|
luid = getattr(llmusage, 'id', None)
|
||||||
if luid:
|
if luid:
|
||||||
from llmage.balance import finalize_balance
|
from llmage.balance import finalize_balance
|
||||||
await finalize_balance(ServerEnv(), luid, customer_amount)
|
await finalize_balance(ServerEnv(), luid, customer_amount,
|
||||||
|
llmid=getattr(llmusage, 'llmid', None))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exception(f'finalize_balance failed (non-critical): {e}')
|
exception(f'finalize_balance failed (non-critical): {e}')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user