From 3516b51ff83e24d3237c0df212bd1a1895869b04 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 31 Mar 2026 17:27:07 +0800 Subject: [PATCH] bugfix --- wwwroot/chat/completions/index.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/chat/completions/index.dspy b/wwwroot/chat/completions/index.dspy index 428d7e0..0116af9 100644 --- a/wwwroot/chat/completions/index.dspy +++ b/wwwroot/chat/completions/index.dspy @@ -12,8 +12,8 @@ userorgid = await get_userorgid() if userid is None: return openai_403() -if not params_kw.prompt: - d = return_error('Missing need data(prompt)') +if not params_kw.prompt and not params_kw.messages: + d = return_error('Missing need data(prompt or messages)') return json_response(d, status=400) env = request._run_ns async with get_sor_context(env, 'llmage') as sor: