Skip to content

feat: Ollama model name can be selected with a text input node #7282

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sancelot
Copy link

This feature will permit to easily change of model when chaining ollama llm nodes

This feature will permit to easily change of model when chaining ollama llm nodes
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Mar 26, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Mar 26, 2025
@sancelot sancelot changed the title feat: model name can be selected with a text input node feat: Ollama model name can be selected with a text input node Mar 26, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Mar 26, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Mar 26, 2025
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @sancelot

Thanks for the PR.

The correct way of doing this would be to add a input_types = ["Message"] to the model_name input.

@edwinjosechittilappilly
Copy link
Collaborator

@ogabrielluiz can't we have a combo box for the drop-down to sort this issue?

@@ -34,6 +34,12 @@ class ChatOllamaComponent(LCModelComponent):
refresh_button=True,
real_time_refresh=True,
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
),
combobox=True
),

Copy link
Collaborator

@edwinjosechittilappilly edwinjosechittilappilly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR, can we also try combo box and see if that would fix the issue?
@ogabrielluiz what do you suggest?

@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants