mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-12 08:47:01 +00:00
rename model to model_name to avoid collision
This commit is contained in:
committed by
Michael Yang
parent
af66c5695a
commit
5cea13ce00
@@ -111,7 +111,7 @@ def generate_oneshot(*args, **kwargs):
|
||||
spinner.start()
|
||||
spinner_running = True
|
||||
try:
|
||||
for output in engine.generate(*args, **kwargs):
|
||||
for output in engine.generate(model_name=kwargs.pop('model'), *args, **kwargs):
|
||||
choices = output.get("choices", [])
|
||||
if len(choices) > 0:
|
||||
if spinner_running:
|
||||
@@ -147,7 +147,7 @@ def generate_batch(*args, **kwargs):
|
||||
|
||||
|
||||
def pull(*args, **kwargs):
|
||||
model.pull(*args, **kwargs)
|
||||
model.pull(model_name=kwargs.pop('model'), *args, **kwargs)
|
||||
|
||||
|
||||
def run(*args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user