stavsap / comfyui-ollama

Apache License 2.0
335 stars 29 forks source link

feat: Add Ollama API to get available models #14

Closed chenpx976 closed 4 months ago

chenpx976 commented 4 months ago

Inspired by https://github.com/if-ai/ComfyUI-IF_AI_tools

image
stavsap commented 4 months ago

Thank you for this PR, was checking how to do this aswell, I have a small challenge, what happens when the URL to Ollama server is changed in case the server is not at default url http://127.0.0.1:11434? can we have some hook on the value change to trigger the update model list?

chenpx976 commented 4 months ago

I'm sorry I have fixed the issue you mentioned about not refreshing the model list after changing the URL Please check again