Fix genimage action

This commit is contained in:
mudler
2025-03-01 16:02:01 +01:00
parent a57f990576
commit 3790ad3666
5 changed files with 92 additions and 6 deletions

View File

@@ -3,10 +3,10 @@ package actions
import (
"context"
"fmt"
"log/slog"
"github.com/google/go-github/v61/github"
"github.com/mudler/LocalAgent/core/action"
"github.com/mudler/LocalAgent/pkg/xlog"
"github.com/sashabaranov/go-openai/jsonschema"
)
@@ -51,7 +51,7 @@ func (g *GithubIssueSearch) Run(ctx context.Context, params action.ActionParams)
return resultString, err
}
for _, i := range issues.Issues {
slog.Info("Issue found:", i.GetTitle())
xlog.Info("Issue found", "title", i.GetTitle())
resultString += fmt.Sprintf("Issue found: %s\n", i.GetTitle())
resultString += fmt.Sprintf("URL: %s\n", i.GetHTMLURL())
// resultString += fmt.Sprintf("Body: %s\n", i.GetBody())