mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-12 08:47:01 +00:00
fix pull model name
This commit is contained in:
@@ -151,7 +151,7 @@ def pull(*args, **kwargs):
|
||||
|
||||
|
||||
def run(*args, **kwargs):
|
||||
name = model.pull(*args, **kwargs)
|
||||
name = model.pull(model_name=kwargs.pop('model'), *args, **kwargs)
|
||||
kwargs.update({"model": name})
|
||||
print(f"Running {name}...")
|
||||
generate(*args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user