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
11dde418
Unverified
Commit
11dde418
authored
Apr 24, 2025
by
Parth Sareen
Committed by
GitHub
Apr 24, 2025
Browse files
server: improve spacing for JSON grammar (#10131)
parent
a53d744b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
llm/server.go
llm/server.go
+5
-5
No files found.
llm/server.go
View file @
11dde418
...
@@ -640,20 +640,20 @@ root ::= object
...
@@ -640,20 +640,20 @@ root ::= object
value ::= object | array | string | number | ("true" | "false" | "null") ws
value ::= object | array | string | number | ("true" | "false" | "null") ws
object ::=
object ::=
"{" ws (
"{" ws (
string ":" ws value
string ":" ws value
("," ws string ":" ws value)*
("," ws string ":" ws value)*
)? "}"
ws
)?
ws
"}"
array ::=
array ::=
"[" ws (
"[" ws (
value
value
("," ws value)*
("," ws value)*
)? "]"
ws
)?
ws
"]"
string ::=
string ::=
"\"" (
"\"" (
[^"\\\x7F\x00-\x1F] |
[^"\\\x7F\x00-\x1F] |
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
)* "\""
ws
)* "\""
number ::= ("-"? ([0-9] | [1-9] [0-9]*)) ("." [0-9]+)? ([eE] [-+]? [0-9]+)?
ws
number ::= ("-"? ([0-9] | [1-9] [0-9]*)) ("." [0-9]+)? ([eE] [-+]? [0-9]+)?
# Optional space: by convention, applied in this grammar after literal chars when allowed
# Optional space: by convention, applied in this grammar after literal chars when allowed
ws ::= ([ \t\n] ws)?
ws ::= ([ \t\n] ws)?
`
`
...
...
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