Skip to content

Commit

Permalink
feat: improve warning log if llm-sfn not return anything (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
woorui committed Jun 21, 2024
1 parent d255f49 commit cc2e6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sfn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}
}

0 comments on commit cc2e6f2

Please sign in to comment.