From cc2e6f2273533aac92170902ab8c843b841f8112 Mon Sep 17 00:00:00 2001 From: wurui Date: Fri, 21 Jun 2024 16:10:59 +0800 Subject: [PATCH] feat: improve warning log if llm-sfn not return anything (#841) --- sfn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfn.go b/sfn.go index 7ad2d384d..b40571a2c 100644 --- a/sfn.go +++ b/sfn.go @@ -281,6 +281,6 @@ func checkLLMFunctionCall(logger *slog.Logger, serverlessCtx yserverless.Context return } if !fc.IsOK { - logger.Warn("The function is not returning anything, please check if `WriteLLMResult()` has been called") + logger.Warn("The function return nothing to LLM, please ensure ctx.ReadLLMArguments() and ctx.WriteLLMResult() has been called in Handler func.") } }