From eb54b65f6af91d0a1aa2a7dc0c06a26c711f12ae Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 25 Mar 2026 12:01:28 +0800 Subject: [PATCH] bugfix --- wwwroot/test_pricing_program.dspy | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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()}'