bugfix
This commit is contained in:
parent
22cc963885
commit
1daf66f5d1
@ -13,11 +13,6 @@ if userid is None:
|
||||
d = return_error('Authoration Error')
|
||||
return json_response(d, status=401)
|
||||
|
||||
f = await checkCustomerBalance(params_kw.llmid, userorgid)
|
||||
if not f:
|
||||
d = return_error('InsufficientFunds')
|
||||
return json_response(d, status=400)
|
||||
|
||||
if not params_kw.prompt:
|
||||
d = return_error('Missing need data(prompt)')
|
||||
return json_response(d, status=400)
|
||||
@ -36,6 +31,11 @@ where a.llmcatelogid=b.id
|
||||
return json_response(d, status=400)
|
||||
params_kw.llmid = recs[0].id
|
||||
|
||||
f = await checkCustomerBalance(params_kw.llmid, userorgid)
|
||||
if not f:
|
||||
d = return_error('InsufficientFunds')
|
||||
return json_response(d, status=400)
|
||||
|
||||
env = DictObject(**globals())
|
||||
return await inference(request, env=env)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user