This commit is contained in:
yumoqing 2026-03-25 13:20:32 +08:00
parent 99afd61dac
commit 943d3d53da
2 changed files with 1 additions and 5 deletions

View File

@ -355,7 +355,7 @@ where a.id = b.ppid
if not data_value: if not data_value:
e = f'数据({config_data})没有({k})数据' e = f'数据({config_data})没有({k})数据'
exception(e) exception(e)
raise Exeption(e) raise Exception(e)
if f.type == 'unit': if f.type == 'unit':
unit = spec_value unit = spec_value
elif f.type == 'times': elif f.type == 'times':

View File

@ -8,10 +8,6 @@ data = {
db = DBPools() db = DBPools()
dbname = get_module_dbname('pricing') dbname = get_module_dbname('pricing')
async with db.sqlorContext(dbname) as sor: async with db.sqlorContext(dbname) as sor:
data = {
'input_tokens': 123456,
'completions_tokens': 332234
}
x = await pricing_program_charging(sor, ppid, data) x = await pricing_program_charging(sor, ppid, data)
return x return x