mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
parser: remove role validation from Modelfile parser (#9874)
* updates parser/parser.go to allow arbitrary roles in Modelfile MESSAGE blocks
This commit is contained in:
parent
42a14f7f63
commit
ffbfe833da
2 changed files with 12 additions and 16 deletions
|
@ -256,13 +256,13 @@ You are a multiline file parser. Always parse things.
|
|||
{
|
||||
`
|
||||
FROM foo
|
||||
MESSAGE badguy I'm a bad guy!
|
||||
MESSAGE somerandomrole I'm ok with you adding any role message now!
|
||||
`,
|
||||
nil,
|
||||
&ParserError{
|
||||
LineNumber: 3,
|
||||
Msg: errInvalidMessageRole.Error(),
|
||||
[]Command{
|
||||
{Name: "model", Args: "foo"},
|
||||
{Name: "message", Args: "somerandomrole: I'm ok with you adding any role message now!"},
|
||||
},
|
||||
nil,
|
||||
},
|
||||
{
|
||||
`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue