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

Environment variable to disable plugins #256

Closed
simonw opened this issue Sep 10, 2023 · 3 comments
Closed

Environment variable to disable plugins #256

simonw opened this issue Sep 10, 2023 · 3 comments
Labels
Milestone

Comments

@simonw
Copy link
Owner

simonw commented Sep 10, 2023

Would help for when a plugin in development breaks and prevents llm uninstall from working.

Imitate this:

@simonw simonw added enhancement New feature or request developer-experience labels Sep 10, 2023
@simonw
Copy link
Owner Author

simonw commented Sep 10, 2023

@simonw simonw added this to the 0.10 milestone Sep 10, 2023
@simonw
Copy link
Owner Author

simonw commented Sep 10, 2023

Documentation for plugin authors can mention this too.

@simonw
Copy link
Owner Author

simonw commented Sep 10, 2023

Manual testing:

$ llm plugins                               
[
  {
    "name": "llm-gpt4all",
    "hooks": [
      "register_models"
    ],
    "version": "0.1.1"
  },
  {
    "name": "llm-claude",
    "hooks": [
      "register_models"
    ],
    "version": "0.4.0"
  },
  {
    "name": "llm-mlc",
    "hooks": [
      "register_commands",
      "register_models"
    ],
    "version": "0.5"
  },
  {
    "name": "llm-sentence-transformers",
    "hooks": [
      "register_commands",
      "register_embedding_models"
    ],
    "version": "0.1"
  },
  {
    "name": "llm-clip",
    "hooks": [
      "register_embedding_models"
    ],
    "version": "0.1"
  },
  {
    "name": "llm-cluster",
    "hooks": [
      "register_commands"
    ],
    "version": "0.2"
  },
  {
    "name": "llm.default_plugins.openai_models",
    "hooks": [
      "register_commands",
      "register_embedding_models",
      "register_models"
    ]
  }
]
$ LLM_LOAD_PLUGINS='' llm plugins           
[
  {
    "name": "llm.default_plugins.openai_models",
    "hooks": [
      "register_commands",
      "register_embedding_models",
      "register_models"
    ]
  }
]
$ LLM_LOAD_PLUGINS='llm-cluster' llm plugins
[
  {
    "name": "llm-cluster",
    "hooks": [
      "register_commands"
    ],
    "version": "0.2"
  },
  {
    "name": "llm.default_plugins.openai_models",
    "hooks": [
      "register_commands",
      "register_embedding_models",
      "register_models"
    ]
  }
]
$ LLM_LOAD_PLUGINS='llm-cluster,llm-mlc' llm plugins
[
  {
    "name": "llm-cluster",
    "hooks": [
      "register_commands"
    ],
    "version": "0.2"
  },
  {
    "name": "llm-mlc",
    "hooks": [
      "register_commands",
      "register_models"
    ],
    "version": "0.5"
  },
  {
    "name": "llm.default_plugins.openai_models",
    "hooks": [
      "register_commands",
      "register_embedding_models",
      "register_models"
    ]
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant