-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update create handler to use model.Name #3737
Conversation
c012dbb
to
b49dea6
Compare
38bc91b
to
a94c401
Compare
b2d8c1a
to
075bb09
Compare
bb98227
to
898d0a8
Compare
1cdbfc3
to
6a10185
Compare
802b2ad
to
69c0caf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocking bug, but I am unable to create a model in the default (library) namespace with this change. Maybe this should never have worked though:
./ollama create localhost:6000/nous-hermes-2-mistral -f /Users/bruce/models/nous-hermes-2-mistral/Modelfile
transferring model data
Error: invalid model name
322c7dc
to
5013cd0
Compare
you're setting host and model so this name is indeed not valid. to set host, you must also set namespace |
8e957a7
to
c5e892c
Compare
0e4d81e
to
d6d22ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, but it seems as though the changes here have extended beyond model.Name a bit, unless I'm mis-reading the diff.
Looks like this may also need a rebase once the lint change goes in, so I'll review again then
if c.Name != "license" { | ||
// replace | ||
layers = slices.DeleteFunc(layers, func(layer *Layer) bool { | ||
return layer.MediaType == mediatype | ||
if layer.MediaType != mediatype { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this logic change for? Doesnt seem related
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixing a bug the new tests found. What's happening is on a template or system override, the layer being overwritten isn't being removed
follow up to #3718