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

Rename ai-face to ai, update help message #13

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .goreleaser.plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ before:
- go mod download

builds:
- id: ai-face
main: cmd/executor/ai-face/main.go
binary: executor_ai-face_{{ .Os }}_{{ .Arch }}
- id: ai
mszostok marked this conversation as resolved.
Show resolved Hide resolved
main: cmd/executor/ai/main.go
binary: executor_ai_{{ .Os }}_{{ .Arch }}

no_unique_dist_dir: true
env:
Expand Down Expand Up @@ -188,8 +188,8 @@ builds:

archives:

- builds: [ai-face]
id: ai-face
- builds: [ai]
id: ai
files:
- none*
name_template: "{{ .Binary }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "AI Face",
"title": "AI",
"description": "Proxies incoming prompts into AI engine a.k.a brain that responds with analysis.",
"type": "object",
"properties": {
Expand Down
10 changes: 6 additions & 4 deletions cmd/executor/ai-face/main.go → cmd/executor/ai/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"strings"

"github.com/hashicorp/go-plugin"

"github.com/kubeshop/botkube-cloud-plugins/internal/auth"
aibrain "github.com/kubeshop/botkube-cloud-plugins/internal/source/ai-brain"
"github.com/kubeshop/botkube/pkg/api"
Expand All @@ -31,7 +30,7 @@ var (
)

const (
pluginName = "ai-face"
pluginName = "ai"
description = "Proxies incoming prompts into AI engine a.k.a brain that responds with analysis."
maxRespBodySize = 5 * 1024 * 1024 // 5 MB
)
Expand Down Expand Up @@ -116,10 +115,13 @@ func (*AIFace) Help(context.Context) (api.Message, error) {
Sections: []api.Section{
{
Base: api.Base{
Header: "Botkube: An AI-powered plugin for diagnosing your Kubernetes clusters in natural language.",
Description: "🤖 I am an AI powered Kubernetes assistant, ask me anything. Like you would ask your favorite Kubernetes expert. I have a set of tools to investigate the cluster(s) connected to this channel, and happy to learn new ones. Few examples:\n" +
"`{{BotName}} ai are there any failing pods in the namespace kube-system?`\n" +
"`{{BotName}} ai how can I change the number of replicas?`\n" +
"`{{BotName}} ai get me the logs for a pod called \"x\"?`",
},
Buttons: []api.Button{
btnBuilder.ForCommandWithDescCmd("Ask a question", "ai are there any failing pods in my cluster?"),
btnBuilder.ForURL("Give feedback", "https://feedback.botkube.io", api.ButtonStylePrimary),
},
},
},
Expand Down
Loading