Significant-Gravitas / Auto-GPT-Plugin-Template

A starting point for developing your own plug-in for Auto-GPT
MIT License
784 stars 207 forks source link

Plugin config is invalid, continuing without plugins. Error: Invalid plugin config data type: <class 'list'> #23

Open bcamargogui opened 11 months ago

bcamargogui commented 11 months ago

While running docker compose run --rm auto-gpt --install-plugin-deps, the following error appears:

Plugin config is invalid, continuing without plugins. Error: Invalid plugin config data type: <class 'list'>

My plugins_config.yaml file content is:

commercetools:
  - config: {} # Configs from the plugin README and installation instructions.
  - enabled: true

When i remove the hyphen from the plugins_config.yaml file, the error does not appear anymore but the plugin is not loaded

Annett-2601 commented 11 months ago

what settings should I use on the plugins_config.yaml file?

AutoGPTSpacePlugin:
    config: {}
    enabled: true

or these

plugin_a:
  config:
    api_key: my-api-key
  enabled: false
PluginB:
  config: {}
  enabled: true 

If the latest settings are to be used, is it necessary to add a CHAT_ID for the telegram bot? thanks.

bcamargogui commented 11 months ago

@Annett-2601 , it depends, the 2nd code block is for more than 1 plugin, but uses the same format.

Regarding the CHAT_ID, you may add this on the .env file or here on the config field.

As i'm new to Auto-GPT, it may help you to reach out on the discord platform: https://discord.gg/autogpt

Annett-2601 commented 11 months ago

I have the same problem. And I'm following it on Discord. Give me a sign you solved this problem, thanks.

bcamargogui commented 11 months ago

I get the plugin to be loaded using a different directory structure, more details on discord https://discord.com/channels/1092243196446249134/1161308423716098088/1161757994019717350