-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Enhancement] Allow an override of which model is used by Ollama #6
Comments
Thanks for posting this - we have also had this in mind and would like to support this extensibility. Somewhat related - we donated the Ollama component we'd built for this to the Aspire Community Toolkit. At the very least, we'd want this extensibility to be compatible with that. Ideally, you set up the Ollama component and specify what model you want it to be loaded with (there can be multiple, but there is this idea of having a single "Selected" model), and then this Raygun component will automatically use that. I have heard mention of the selected model name going to be added to the connection string coming from that Ollama component, but looks like it hasn't been done just yet. Let me know any other thoughts you have on this in the meantime. |
Actually, looks like this has been done on the Ollama component side - but rather than being in the connection string of the main resource, you can use the resource created via the AddModel method which includes the Model in the connection string. https://github.com/CommunityToolkit/Aspire/pull/143/files#diff-347e09e74adc4f343e7c851220afb064dadd3ee73f0d38f8d42a40b40c3b2f08R22 We'll just need to look at adding support for this. Let us know if you think that'll suit what you're looking for here. |
So I would say a few things on this:
|
Thanks. I don't agree with your 4th point at this stage, but can discuss further. |
Description
Currently the Ollama configuration is setup to always use the llama3 model. The problem with this is that new models are coming out all the time, for instance llama 3.2 is currently available and there are newer models which may provide better results for software development such as deepseek-coder-v2 or codegemma.
Raygun.Aspire.Hosting.Raygun/src/RaygunAspireWebApp/Constants.cs
Line 5 in 28f964f
Raygun.Aspire.Hosting.Raygun/src/RaygunAspireWebApp/Program.cs
Line 28 in 28f964f
Proposal
Add an extension point so that when there is an Ollama ConnectionString we check for a Model Name like
Ollama_Model
with a backup that could still be provided by the constants file.The text was updated successfully, but these errors were encountered: