Skip to content

Commit

Permalink
fix: set the credentials on the main tool when rendering the agent
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Dec 18, 2024
1 parent 6e289c9 commit 52387f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func Agent(ctx context.Context, db kclient.Client, agent *v1.Agent, oauthServerU
return nil, nil, fmt.Errorf("invalid env var %s, must match %s", env.Name, validEnv.String())
}
if env.Value == "" {
agent.Spec.Credentials = append(agent.Spec.Credentials,
mainTool.Credentials = append(mainTool.Credentials,
fmt.Sprintf(`github.com/gptscript-ai/credential as %s with "%s" as message and "%s" as env and %s as field`,
env.Name, env.Description, env.Name, env.Name))
} else {
Expand Down

0 comments on commit 52387f2

Please sign in to comment.