[GH-ISSUE #1217] \n Modelfile and path deprecated? #62657

Closed
opened 2026-05-03 09:54:41 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Luxadevi on GitHub (Nov 21, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1217

Originally assigned to: @BruceMacD on GitHub.

Hi,

Could you tell me why you removed the "path" parameter from the /api/create endpoint?

And why the replacement of parsing the whole modelfile in the curl command?
Really struggeling to set up some python logic where \n is the escape character for a new line and it goes completly mental on it.
Would it be possible to have different syntaxing for this?

Originally created by @Luxadevi on GitHub (Nov 21, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1217 Originally assigned to: @BruceMacD on GitHub. Hi, Could you tell me why you removed the "path" parameter from the /api/create endpoint? And why the replacement of parsing the whole modelfile in the curl command? Really struggeling to set up some python logic where \n is the escape character for a new line and it goes completly mental on it. Would it be possible to have different syntaxing for this?
Author
Owner

@BruceMacD commented on GitHub (Nov 21, 2023):

Hey @Luxadevi sorry for the confusion. We switched over to using the modelfile parameter directly but path will continue to be supported for now (might get deprecated at some point in the future).

I noticed that our python client didn't get updated, Im working on that now in this PR:
https://github.com/jmorganca/ollama/pull/1227
I think this could be of use to you.

<!-- gh-comment-id:1821653664 --> @BruceMacD commented on GitHub (Nov 21, 2023): Hey @Luxadevi sorry for the confusion. We switched over to using the `modelfile` parameter directly but `path` will continue to be supported for now (might get deprecated at some point in the future). I noticed that our python client didn't get updated, Im working on that now in this PR: https://github.com/jmorganca/ollama/pull/1227 I think this could be of use to you.
Author
Owner

@jmorganca commented on GitHub (Nov 21, 2023):

Hi @Luxadevi. This totally makes sense. I've marked the path parameter as no longer deprecated

<!-- gh-comment-id:1821768304 --> @jmorganca commented on GitHub (Nov 21, 2023): Hi @Luxadevi. This totally makes sense. I've marked the `path` parameter as no longer deprecated
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62657