bugfix
This commit is contained in:
parent
f0e2cc4697
commit
ab5db75ce2
@ -37,7 +37,7 @@ async def get_remote_pricing(sor, charge, data):
|
||||
return d
|
||||
|
||||
async def pricing_program_charging(sor, pricing_program_id, data):
|
||||
pp = PricingProgram(pricing_program_id)
|
||||
pp = PricingProgram(pricing_program_id, sor)
|
||||
await pp.init()
|
||||
pp_items = pp.get_items()
|
||||
specs = pt.get_spec()
|
||||
|
||||
@ -5,6 +5,7 @@ async with db.sqlorContext(dbname) as sor:
|
||||
'input_tokens': 123456,
|
||||
'completions_tokens': 332234
|
||||
}
|
||||
x = pricing_program_charging(sor, 'vq5OpFe5JTA255sdRNWtD', data)
|
||||
print(x)
|
||||
x = await pricing_program_charging(sor, 'vq5OpFe5JTA255sdRNWtD', data)
|
||||
return x
|
||||
|
||||
return f'Except:{db.e_except},{format_exc()}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user