This commit is contained in:
yumoqing 2026-05-21 13:35:00 +08:00
parent 6031efaa67
commit abafdb4eb9

View File

@ -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'