Skip to content

Commit

Permalink
Fix ai-face config definition, replace out-dated flags (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok authored Feb 20, 2024
1 parent 0bc103e commit cd9ef80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
############

build-plugins: ## Builds all plugins for all defined platforms
goreleaser build -f .goreleaser.plugin.yaml --rm-dist --snapshot
goreleaser build -f .goreleaser.plugin.yaml --clean --snapshot
.PHONY: build-plugins

build-plugins-single: ## Builds specified plugins in binary format only for current GOOS and GOARCH.
go run github.com/kubeshop/botkube/hack/target/build-plugins -plugin-targets=$(PLUGIN_TARGETS) -output-mode=binary -single-platform
.PHONY: build-plugins-single

build-plugins-archives: ## Builds all plugins for all defined platforms in form of archives
goreleaser release -f .goreleaser.plugin.yaml --rm-dist --snapshot
goreleaser release -f .goreleaser.plugin.yaml --clean --snapshot
.PHONY: build-plugins

##############
Expand Down
7 changes: 4 additions & 3 deletions cmd/executor/ai-face/config_schema.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Echo",
"description": "Echo is an example Botkube executor plugin used during e2e tests. It's not meant for production usage.",
"title": "AI Face",
"description": "Proxies incoming prompts into AI engine a.k.a brain that responds with analysis.",
"type": "object",
"properties": {
"aiBrainSourceName": {
"type": "string",
"default": "ai-brain"
"default": "ai-brain",
"title": "AI Brain configuration source name. It is used to trigger AI brain using incoming webhook payload."
}
},
"required": []
Expand Down
2 changes: 1 addition & 1 deletion cmd/executor/ai-face/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const (

// Config holds executor configuration.
type Config struct {
AIBrainSourceName string `json:"aiBrainSourceName"`
AIBrainSourceName string `yaml:"aiBrainSourceName"`
Log config.Logger `yaml:"log"`
}

Expand Down

0 comments on commit cd9ef80

Please sign in to comment.