mirror of https://github.com/ollama/ollama.git
This change addresses how parameters and messages are handled while parsing a Modelfile. Currently a `MESSAGE` command creates a string that looks like "<role>: <message>" which then has to be re-parsed, and `PARAMETER` ends up being the default data type which makes it difficult to add other multi-part commands. This change introduces a Message and a Parameter type which properly handle properties such as the role and the name of the parameter. |
||
---|---|---|
.. | ||
expandpath_test.go | ||
parser.go | ||
parser_test.go |