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