Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: llm-sfn don't return an error if it don't read arguments #846

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

woorui
Copy link
Collaborator

@woorui woorui commented Jun 25, 2024

No description provided.

@woorui woorui self-assigned this Jun 25, 2024
Copy link

vercel bot commented Jun 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
yomo ⬜️ Ignored (Inspect) Visit Preview Jun 25, 2024 10:53am

Copy link

codecov bot commented Jun 25, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 6 lines in your changes missing coverage. Please review.

Project coverage is 64.64%. Comparing base (cc2e6f2) to head (9b4fa3d).

Files Patch % Lines
ai/function_call.go 25.00% 2 Missing and 1 partial ⚠️
serverless/mock/mock_context.go 50.00% 1 Missing and 1 partial ⚠️
sfn.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #846      +/-   ##
==========================================
- Coverage   64.93%   64.64%   -0.30%     
==========================================
  Files          45       45              
  Lines        2658     2650       -8     
==========================================
- Hits         1726     1713      -13     
- Misses        820      824       +4     
- Partials      112      113       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -281,6 +281,6 @@ func checkLLMFunctionCall(logger *slog.Logger, serverlessCtx yserverless.Context
return
}
if !fc.IsOK {
logger.Warn("The function return nothing to LLM, please ensure ctx.ReadLLMArguments() and ctx.WriteLLMResult() has been called in Handler func.")
logger.Warn("The function return nothing to LLM, please ensure ctx.WriteLLMResult() has been called and successful in Handler func.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.Warn("The function return nothing to LLM, please ensure ctx.WriteLLMResult() has been called and successful in Handler func.")
logger.Warn("Function did not return any LLM result, ensure ctx.WriteLLMResult() is called and successful in the Handler function.")

@fanweixiao fanweixiao merged commit 016bdb7 into master Jun 28, 2024
5 of 7 checks passed
@fanweixiao fanweixiao deleted the feat/sfn-write-llm branch June 28, 2024 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants