ollama/parser
Patrick Devine c10a40db99 parser: tidy up parameter/message parsing
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.
2025-09-15 18:09:05 -07:00
..
expandpath_test.go Fix absolute path names + gguf detection (#8428) 2025-01-14 19:01:24 -08:00
parser.go parser: tidy up parameter/message parsing 2025-09-15 18:09:05 -07:00
parser_test.go parser: tidy up parameter/message parsing 2025-09-15 18:09:05 -07:00