mirror of
https://github.com/tcsenpai/youlama.git
synced 2025-06-05 18:55:39 +00:00
quickfix
This commit is contained in:
parent
3e69817ba0
commit
3eade21b9f
@ -49,7 +49,8 @@ class OllamaHandler:
|
|||||||
"""Get list of available Ollama models."""
|
"""Get list of available Ollama models."""
|
||||||
try:
|
try:
|
||||||
models = self.client.list()
|
models = self.client.list()
|
||||||
model_names = [model["name"] for model in models["models"]]
|
# The response structure is different, models are directly in the response
|
||||||
|
model_names = [model["model"] for model in models["models"]]
|
||||||
logger.info(f"Found {len(model_names)} available models")
|
logger.info(f"Found {len(model_names)} available models")
|
||||||
return model_names
|
return model_names
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user