Closed LionyxML closed 7 months ago
Cool, thank you for contributing.
@s-kostyaev, new commit addresses the points raised in the code review.
What do you think about making this feature more generic to allow switching providers (from a preconfigured list)?
LGTM. I need this. Thanks, @LionyxML!
What do you think about making this feature more generic to allow switching providers (from a preconfigured list)?
Good idea. I already thought about that. But it can be separate feature, because with ollama we can get list interactively. But we can't do it with other providers.
Hey there @s-kostyaev! I just received confirmation of the FSF process completion. Do I have to send you something?
Hey there @s-kostyaev! I just received confirmation of the FSF process completion. Do I have to send you something?
This message is enough, thank you. At the weekend I will review your PRs one more time. I also have confirmation from FSF and I need to make some changes for project transition.
This PR we will merge after your first PR. You need to rebase it and add command into keymap.
Yay!
@s-kostyaev rebased and pushed. Let's hope for the best with CI :smile:
I've got an idea from this PR and provide different implementation. See new command ellama-provider-select
.
This commit adds the
ellama-select-local-ollama-model
function, allowing users to interactively switch between locally available Ollama models.You can call this function:![image](https://github.com/s-kostyaev/ellama/assets/16169950/bc14af1c-d5f2-4157-b790-1d204d4fdd7f)
It will prompt you to select a model:![image](https://github.com/s-kostyaev/ellama/assets/16169950/b6d7a25f-9cdb-4d5c-a7c9-37b4da4388c4)
You select your model:![image](https://github.com/s-kostyaev/ellama/assets/16169950/d4a9f9f7-763f-4364-bf86-fe22c9c39095)
You interact with the model:![image](https://github.com/s-kostyaev/ellama/assets/16169950/68398590-c208-4162-91a9-cb781d2e7d2a)
You then call the function again, select another model, like:![image](https://github.com/s-kostyaev/ellama/assets/16169950/11c1eac1-2258-441c-951e-2950d355204a)
And then, you can use this one:![image](https://github.com/s-kostyaev/ellama/assets/16169950/77cdb86b-868f-4091-8268-e8494afa0e8b)
This provides a "quick switch" between models. I've been using it to change codellama models when the less powerfull ones starts giving nonsense answers, quicky and some sort of dirty. ;)