diff --git a/wwwroot/test_pricing_program.dspy b/wwwroot/test_pricing_program.dspy index a853295..53fd3fa 100644 --- a/wwwroot/test_pricing_program.dspy +++ b/wwwroot/test_pricing_program.dspy @@ -1,3 +1,10 @@ +ppid = 'sF2gcl7UeANKtnZv8hfvL' +data = { + 'model': 'viduq3-pro', + 'resolution': '1024p', + 'duration': 10, + 'off_peak': 'normal', +} db = DBPools() dbname = get_module_dbname('pricing') async with db.sqlorContext(dbname) as sor: @@ -5,7 +12,7 @@ async with db.sqlorContext(dbname) as sor: 'input_tokens': 123456, 'completions_tokens': 332234 } - x = await pricing_program_charging(sor, 'vq5OpFe5JTA255sdRNWtD', data) + x = await pricing_program_charging(sor, ppid, data) return x return f'Except:{db.e_except},{format_exc()}'