gsuuon / model.nvim

Neovim plugin for interacting with LLM's and building editor integrated prompts.
MIT License
328 stars 23 forks source link

switch default openai to gpt4 #43

Closed blankenshipz closed 9 months ago

blankenshipz commented 9 months ago

For most of my use cases I'm okay with the "starter" prompts (and in fact just the default prompt); however I'd love it if I could switch the default gpt-3.5-turbo to a gpt4 model - is there an easy way to just override this setting?

gsuuon commented 9 months ago

There is! You can override the default params for the openai provider:

    config = function()
      require('model.providers.openai').initialize({
        model = 'gpt-4-1106-preview'
      })
    end

I thought this was in the docs, I'll add it now.