Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

model

URL: https://github.com/gsuuon/model.nvim/

Maintainers: Gaetan Lepage

plugins.model.enable

Whether to enable model.

Type: boolean

Default:

false

Example:

true

Declared by:

plugins.model.package

The model package to use.

Type: package

Default:

pkgs.vimPlugins.model-nvim

Declared by:

plugins.model.autoLoad

Whether to automatically load model when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example:

false

Declared by:

plugins.model.settings

Options provided to the require('model').setup function.

Type: lua value

Default:

{ }

Example:

{
  prompts = {
    zephyr = {
      builder = {
        __raw = ''
          function(input, context)
            return {
              prompt =
                '<|system|>'
                .. (context.args or 'You are a helpful assistant')
                .. '\n</s>\n<|user|>\n'
                .. input
                .. '</s>\n<|assistant|>',
              stop = { '</s>' }
            }
          end
        '';
      };
      options = {
        url = "http:localhost:8080";
      };
      provider = {
        __raw = "require('model.providers.llamacpp')";
      };
    };
  };
}

Declared by: