mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 09:34:37 +00:00
dont print full base64 for images
This commit is contained in:
parent
143b611274
commit
9d5efd68b6
1 changed files with 11 additions and 1 deletions
10
koboldcpp.py
10
koboldcpp.py
|
@ -3029,6 +3029,16 @@ Enter Prompt:<br>
|
||||||
}}).encode())
|
}}).encode())
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
tmpimgs = genparams.get("images", []) # reduce amount of text printed to terminal when dumping large images
|
||||||
|
if tmpimgs and isinstance(tmpimgs, (list, tuple)) and len(tmpimgs)>0:
|
||||||
|
printablegenparams = copy.deepcopy(genparams)
|
||||||
|
outarr = []
|
||||||
|
for img in tmpimgs:
|
||||||
|
outarr.append(str(img[:512])+"...")
|
||||||
|
printablegenparams["images"] = outarr
|
||||||
|
utfprint("\nInput: " + json.dumps(printablegenparams),1)
|
||||||
|
else:
|
||||||
utfprint("\nInput: " + json.dumps(genparams),1)
|
utfprint("\nInput: " + json.dumps(genparams),1)
|
||||||
|
|
||||||
if args.foreground:
|
if args.foreground:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue