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
fc40a4f1
Unverified
Commit
fc40a4f1
authored
Jul 28, 2023
by
Michael Yang
Committed by
GitHub
Jul 28, 2023
Browse files
Merge pull request #234 from jmorganca/fix-parse-license
use max scan token size to hold large objects
parents
6ed3ec0c
9c7f30d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
parser/parser.go
parser/parser.go
+1
-0
No files found.
parser/parser.go
View file @
fc40a4f1
...
...
@@ -24,6 +24,7 @@ func Parse(reader io.Reader) ([]Command, error) {
var
command
,
modelCommand
Command
scanner
:=
bufio
.
NewScanner
(
reader
)
scanner
.
Buffer
(
make
([]
byte
,
0
,
bufio
.
MaxScanTokenSize
),
bufio
.
MaxScanTokenSize
)
scanner
.
Split
(
scanModelfile
)
for
scanner
.
Scan
()
{
line
:=
scanner
.
Bytes
()
...
...
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