revert: restore self-orgid balance bypass in checkCustomerBalance()
The 'if llm.ownerid == userorgid: return True' shortcut is correct behavior — own organization's models should not require balance check.
This commit is contained in:
parent
265702b894
commit
e9a20a091f
@ -42,6 +42,9 @@ async def checkCustomerBalance(llmid, userid, userorgid, catelogid=None):
|
|||||||
return False
|
return False
|
||||||
env = ServerEnv()
|
env = ServerEnv()
|
||||||
llm = await get_llm(llmid)
|
llm = await get_llm(llmid)
|
||||||
|
if llm.ownerid == userorgid:
|
||||||
|
debug(f'self orgid user')
|
||||||
|
return True
|
||||||
balance = 0.00
|
balance = 0.00
|
||||||
tpac = await get_user_tpac(userid)
|
tpac = await get_user_tpac(userid)
|
||||||
if tpac:
|
if tpac:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user