Skip to content

Commit

Permalink
Merge pull request #741 from containers/dryrun-fix
Browse files Browse the repository at this point in the history
On macOS this was returning an incorrect path
  • Loading branch information
rhatdan authored Feb 5, 2025
2 parents a08b166 + abc065d commit 965bdf2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ramalama/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,14 @@ def build_prompt(self, args):
return prompt

def get_model_path(self, args):
model_path = self.exists(args)
if model_path:
return model_path

if args.dryrun:
return "/path/to/model"

model_path = self.exists(args)
if not model_path:
model_path = self.pull(args)
model_path = self.pull(args)

return model_path

Expand Down

0 comments on commit 965bdf2

Please sign in to comment.