diff --git a/wwwroot/t2t/index.dspy b/wwwroot/t2t/index.dspy index 1a7d4c1..d5de61f 100644 --- a/wwwroot/t2t/index.dspy +++ b/wwwroot/t2t/index.dspy @@ -16,7 +16,7 @@ if userid is None: if not params_kw.prompt: d = return_error('Missing need data(prompt)') return json_response(d, status=400) -env = ServerEnv() +env = request._run_ns async with get_sor_context(env, 'llmage') as sor: sql = """select a.* from llm a, llmcatelog b where a.llmcatelogid=b.id