mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
fixed makefile (+1 squashed commits)
Squashed commits: [ef6ddaf5] try fix makefile
This commit is contained in:
parent
a97f7d5f91
commit
b0a7d1aba6
7 changed files with 52 additions and 117 deletions
|
@ -1321,7 +1321,16 @@ Enter Prompt:<br>
|
|||
body = None
|
||||
if contlenstr:
|
||||
content_length = int(contlenstr)
|
||||
if content_length > (1024*1024*24): #24mb payload limit
|
||||
self.send_response(500)
|
||||
self.end_headers(content_type='application/json')
|
||||
self.wfile.write(json.dumps({"detail": {
|
||||
"msg": "Payload is too big. Max payload size is 24MB.",
|
||||
"type": "bad_input",
|
||||
}}).encode())
|
||||
return
|
||||
body = self.rfile.read(content_length)
|
||||
|
||||
self.path = self.path.rstrip('/')
|
||||
response_body = None
|
||||
response_code = 200
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue