Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
1f45f7bb
Commit
1f45f7bb
authored
Jul 17, 2023
by
Jeffrey Morgan
Browse files
convert commands to uppercase in parser
parent
2e6c64a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
parser/parser.go
parser/parser.go
+1
-1
No files found.
parser/parser.go
View file @
1f45f7bb
...
@@ -38,7 +38,7 @@ func Parse(reader io.Reader) ([]Command, error) {
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment