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

cannot change ollama model #8

Open
JoseConseco opened this issue Dec 9, 2023 · 0 comments · May be fixed by #11
Open

cannot change ollama model #8

JoseConseco opened this issue Dec 9, 2023 · 0 comments · May be fixed by #11

Comments

@JoseConseco
Copy link

I think something is wrong with arguments passed to ollama:new
image

the o variable seems to hold 'provider_options' (initialized by user - to override build in model) :
image
params is nill.
Thus build-in parameters cannot be overridden in line:
self.params = vim.tbl_deep_extend('keep', params or {}, {

Config:

local cmp_ai = require "cmp_ai.config"

cmp_ai:setup {
  max_lines = 20,
  provider = "Ollama",
  provider_options = {
    model = 'deepseek-coder:1.3b-base-q5_0', -- way stronger version.. but not working..--need custom promps.
    -- prompt="<|fim▁begin|>"..lines_before.."<|fim▁hole|>"..lines_after.."<|fim▁end|>"
    options = {
      temperature = 0.2,
    }
  },      
.......

Btw. is there way to override model promp from within 'provider_options' ?

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