bugfix
This commit is contained in:
parent
6031efaa67
commit
abafdb4eb9
@ -60,7 +60,7 @@ async def tpac_accounting(apikey, userid, llmid, amount, usage):
|
||||
hc = StreamHttpClient()
|
||||
status = 'failed'
|
||||
try:
|
||||
b = hc.request('POST', url, data=d):
|
||||
b = hc.request('POST', url, data=d)
|
||||
d = json.loads(b.decode('utf-8'))
|
||||
if d['status'] == 'ok':
|
||||
status = 'accounted'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user