bugfix
This commit is contained in:
parent
76622381be
commit
449e9db1f4
@ -58,7 +58,7 @@ async def tpac_accounting(apikey, userid, llmid, amount, usage):
|
|||||||
'usage': usage
|
'usage': usage
|
||||||
}
|
}
|
||||||
url = config.thirdparty_accounting_center.get_user_balance_url
|
url = config.thirdparty_accounting_center.get_user_balance_url
|
||||||
hc = StreamHttpClient()
|
hc = StreamHttpClient()
|
||||||
try:
|
try:
|
||||||
b = hc.request('POST', url, data=d):
|
b = hc.request('POST', url, data=d):
|
||||||
d = json.loads(b.decode('utf-8'))
|
d = json.loads(b.decode('utf-8'))
|
||||||
@ -70,8 +70,8 @@ async def tpac_accounting(apikey, userid, llmid, amount, usage):
|
|||||||
exception(f'{apikey=}, {userid=}, {llmid=}, {amount=}, {usage=} tpac accounting error')
|
exception(f'{apikey=}, {userid=}, {llmid=}, {amount=}, {usage=} tpac accounting error')
|
||||||
return
|
return
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exception(f'{apikey=}, {userid=}, {llmid=}, {amount=}, {usage=} tpac accounting error:{e}')
|
exception(f'{apikey=}, {userid=}, {llmid=}, {amount=}, {usage=} tpac accounting error:{e}')
|
||||||
return
|
return
|
||||||
|
|
||||||
async def append_new_llmoutput(webpath, output):
|
async def append_new_llmoutput(webpath, output):
|
||||||
fs = FileStorage()
|
fs = FileStorage()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user