mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 09:04:36 +00:00
Merge branch 'upstream' into concedo_experimental
# Conflicts: # .github/workflows/docker.yml # Makefile # examples/CMakeLists.txt # ggml/CMakeLists.txt # ggml/src/CMakeLists.txt # ggml/src/ggml-sycl/common.hpp # ggml/src/ggml-sycl/convert.cpp # ggml/src/ggml-sycl/convert.hpp # ggml/src/ggml-sycl/ggml-sycl.cpp # scripts/sync-ggml.last
This commit is contained in:
commit
b6220669f4
14 changed files with 410 additions and 117 deletions
|
@ -3220,11 +3220,11 @@ Change Mode<br>
|
|||
if not title or title=="":
|
||||
title = "Untitled Save"
|
||||
storybody = incoming_story.get('data', None) #should be a compressed string
|
||||
if slotid >= 0 and slotid < net_save_slots: # we shall provide 4 network save slots
|
||||
if slotid >= 0 and slotid < net_save_slots: # we shall provide some fixed network save slots
|
||||
saveneeded = False
|
||||
if storybody and storybody!="":
|
||||
storybody = str(storybody)
|
||||
if len(storybody) > (1024*1024*8): #limit story to 8mb
|
||||
if len(storybody) > (1024*1024*10): #limit each story to 10mb
|
||||
response_code = 400
|
||||
response_body = (json.dumps({"success":False, "error":"Story is too long!"}).encode())
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue