Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

parser: fix case where multi line string termination error wouldnt show

Jeffrey Morgan3b135ac96326
diff --git a/parser/parser.go b/parser/parser.go
index b8007c2a5..fcb50bf5b 100644
--- a/parser/parser.go
+++ b/parser/parser.go
@@ -62,10 +62,6 @@ func Parse(reader io.Reader) ([]Command, error) {
}
func scanModelfile(data []byte, atEOF bool) (advance int, token []byte, err error) {
- if atEOF || len(data) == 0 {
- return 0, nil, nil
- }
-
newline := bytes.IndexByte(data, '\n')
if start := bytes.Index(data, []byte(`"""`)); start >= 0 && start < newline {