From f0e2cc469775aa625aff2ad1baddd0c443f5cfeb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 27 Oct 2025 13:20:08 +0800 Subject: [PATCH] bugfix --- wwwroot/test_pricing_program.dspy | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 wwwroot/test_pricing_program.dspy diff --git a/wwwroot/test_pricing_program.dspy b/wwwroot/test_pricing_program.dspy new file mode 100644 index 0000000..73b23be --- /dev/null +++ b/wwwroot/test_pricing_program.dspy @@ -0,0 +1,10 @@ +db = DBPools() +dbname = get_module_dbname('pricing') +async with db.sqlorContext(dbname) as sor: + data = { + 'input_tokens': 123456, + 'completions_tokens': 332234 + } + x = pricing_program_charging(sor, 'vq5OpFe5JTA255sdRNWtD', data) + print(x) +