bugfix
This commit is contained in:
parent
2e3755e262
commit
eb54b65f6a
@ -1,3 +1,10 @@
|
|||||||
|
ppid = 'sF2gcl7UeANKtnZv8hfvL'
|
||||||
|
data = {
|
||||||
|
'model': 'viduq3-pro',
|
||||||
|
'resolution': '1024p',
|
||||||
|
'duration': 10,
|
||||||
|
'off_peak': 'normal',
|
||||||
|
}
|
||||||
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:
|
||||||
@ -5,7 +12,7 @@ async with db.sqlorContext(dbname) as sor:
|
|||||||
'input_tokens': 123456,
|
'input_tokens': 123456,
|
||||||
'completions_tokens': 332234
|
'completions_tokens': 332234
|
||||||
}
|
}
|
||||||
x = await pricing_program_charging(sor, 'vq5OpFe5JTA255sdRNWtD', data)
|
x = await pricing_program_charging(sor, ppid, data)
|
||||||
return x
|
return x
|
||||||
|
|
||||||
return f'Except:{db.e_except},{format_exc()}'
|
return f'Except:{db.e_except},{format_exc()}'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user