-
Notifications
You must be signed in to change notification settings - Fork 44
Enhanced Model Management and SystemPrompt Integration in OllamaAgent #351
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
base: main
Are you sure you want to change the base?
Conversation
…sly, listing available models dynamically via an API * Modified the agent to include a model selection mechanism that allows it to iterate through predefined models. * Introduced a `model` command to manage the switching between models based on available models. It is possible to configure SystemPrompt with the selected model into OllamaAgent, providing users with a toolkit for task-oriented conversations. * Modified the agent to accommodate Ollama's SystemPrompt functionality. * Introduced a `system-prompt` command to manage the setting. OllamaAgent now supports the use of predefined model configurations, allowing users to easily switch between different models and system prompts based on specific requirements. * Introduced a `ModelConfig` Record to encapsulate data for each configuration. * Introduced a `config` command to manage the switching between configuration based on available predefined sets.
This comment was marked as resolved.
This comment was marked as resolved.
@kborowinski @cnupy After upgrading to the v0.5.13 of Ollama, the I moved to |
@daxian-dbw I'm on latest And this is different computer, graphic card and model Try to stop all Get-Process ollama* | Stop-Process -Force |
Everything's working fine for me as well. I'm using Ollama 0.5.4 /llm/ollama# ./ollama -v
ggml_sycl_init: found 1 SYCL devices:
ollama version is 0.5.4-ipexllm-20250310
|
…d improve error logging
… into ollama-multy-model-support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay!
The ollama agent from the main branch works for me now (I have no idea why it didn't weeks before. I guess something specific to my system). I left some comments, but haven't finished reviewing the Command.cs
file. Will finish it tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with my 2nd pass of review :)
Co-authored-by: Dongbo Wang <[email protected]>
…roved clarity and consistency
@cnupy Thanks for the quick updates. Now only those 4 remaining comments are relevant (I left follow-up comments). All rest looks good. |
…preset management
I've resolved the four remaining comments. Additionally, I renamed the |
…ent configuration.
PR Summary
Feature 1: Support for Multiple Models
Description
OllamaAgent can now handle and switch between multiple models seamlessly, listing available models dynamically via an API
Implementation Details
model
command to manage the switching between models based on available models.Feature 2: Integration of SystemPrompt
Description
It is possible to configure SystemPrompt with the selected model into OllamaAgent, providing users with a toolkit for task-oriented conversations.
Implementation Details
system-prompt
command to manage the setting.Feature 3: Support for Predefined ModelConfigs sets
Description
OllamaAgent now supports the use of predefined model configurations, allowing users to easily switch between different models and system prompts based on specific requirements.
Implementation Details
ModelConfig
Record to encapsulate data for each configuration.config
command to manage the switching between configuration based on available predefined sets.PR Context
This Pull Request enhances the functionality of OllamaAgent by introducing improved model management. By allowing seamless switching between multiple models and supporting predefined configurations, it offers users greater flexibility. The addition of SystemPrompt functionality empowers users with a more task-oriented conversational toolkit, streamlining interactions. These updates not only enhance user experience but also improve the agent's adaptability to diverse requirements. This makes OllamaAgent a more versatile and powerful tool overall.