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

Update Doctor's engine to gpt-3.5-turbo-instinct and fix prompt #1349

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

pkosiec
Copy link
Collaborator

@pkosiec pkosiec commented Jan 15, 2024

Description

Changes proposed in this pull request:

  • Update Doctor's engine to gpt-3.5-turbo-instinct and fix prompt

Testing

Video

Screen.Recording.2024-01-15.at.17.33.05.mov

Instruction

Checkout this PR:

gh pr checkout 1349

Run plugins server:

make build-plugins-single
go run test/helpers/plugin_server.go

Prepare comm_config.yaml:

settings:
  clusterName: "dev"

plugins:
  repositories:
    botkube:
       url: http://localhost:3010/botkube.yaml

executors:
  k8s-default-tools:
    botkube/kubectl:
      enabled: true
    botkube/helm:
      enabled: true
  "ai":
    # Doctor executor configuration.
    botkube/doctor:
      enabled: true
      ## Custom doctor plugin configuration.
      config:
        ## Open API key for accessing the ChatGPT engine. You can get it at https://platform.openai.com/account/api-keys.
        apiKey: "..."

sources:
  k8s-err-events:
    botkube/kubernetes:
      enabled: false
  k8s-err-events-with-ai-support:
    displayName: "Kubernetes Errors with AI support"
    botkube/kubernetes:
      context:
        rbac:
          group:
            type: Static
            prefix: ""
            static:
              values: ["botkube-plugins-default"]
      enabled: true

communications:
  "default-group":
    socketSlack:
      enabled: true
      appToken: "..."
      botToken: "..."
      channels:
        "default":
          name: "botkube-demo"
          bindings:
            executors:
              - ai
              - k8s-default-tools
            sources:
              - k8s-err-events-with-ai-support

Run Botkube:

export BOTKUBE_SETTINGS_LOG_LEVEL=debug \
export BOTKUBE_PLUGINS_CACHE__DIR="/tmp/plugins" \
export BOTKUBE_CONFIG_PATHS="$(pwd)/helm/botkube/values.yaml,$(pwd)/comm_config.yaml"
export LOG_LEVEL_EXECUTOR_BOTKUBE_DOCTOR="debug"
go run cmd/botkube-agent/main.go

Related issue(s)

Resolves #1343
Fix #1350

@pkosiec pkosiec added the bug Something isn't working label Jan 15, 2024
@pkosiec pkosiec marked this pull request as ready for review January 15, 2024 16:40
@pkosiec pkosiec requested a review from PrasadG193 as a code owner January 15, 2024 16:40
@pkosiec pkosiec requested review from a team and mszostok January 15, 2024 16:40
Copy link
Collaborator

@mszostok mszostok left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@pkosiec pkosiec merged commit aedeb1f into kubeshop:main Jan 16, 2024
17 checks passed
@pkosiec pkosiec deleted the fix-doctor-plugin branch January 16, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Botkube/doctor request to OpenAI 404:invalid_request_error OpenAI model in Doctor plugin was shut down
2 participants