mirror of
https://github.com/ollama/ollama.git
synced 2025-08-02 14:02:55 +02:00
tests
This commit is contained in:
@@ -26,7 +26,10 @@ const (
|
||||
stateComment
|
||||
)
|
||||
|
||||
var errInvalidRole = errors.New("role must be one of \"system\", \"user\", or \"assistant\"")
|
||||
var (
|
||||
errMissingFrom = errors.New("no FROM line")
|
||||
errInvalidRole = errors.New("role must be one of \"system\", \"user\", or \"assistant\"")
|
||||
)
|
||||
|
||||
func Parse(r io.Reader) (cmds []Command, err error) {
|
||||
var cmd Command
|
||||
@@ -123,7 +126,7 @@ func Parse(r io.Reader) (cmds []Command, err error) {
|
||||
}
|
||||
}
|
||||
|
||||
return nil, errors.New("no FROM line")
|
||||
return nil, errMissingFrom
|
||||
}
|
||||
|
||||
func parseRuneForState(r rune, cs state) (state, rune, error) {
|
||||
|
Reference in New Issue
Block a user