mirror of
https://github.com/ollama/ollama.git
synced 2025-12-11 12:52:48 +01:00
convert commands to uppercase in parser
This commit is contained in:
@@ -38,7 +38,7 @@ func Parse(reader io.Reader) ([]Command, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
command := Command{}
|
command := Command{}
|
||||||
switch fields[0] {
|
switch strings.ToUpper(fields[0]) {
|
||||||
case "FROM":
|
case "FROM":
|
||||||
command.Name = "model"
|
command.Name = "model"
|
||||||
command.Arg = fields[1]
|
command.Arg = fields[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user