mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-20 23:50:30 +01:00
Only show 'GENERATE_PARAMS=...' in the logits endpoint if use_logits is True
This commit is contained in:
parent
e52f62d3ff
commit
caa6afc88b
|
|
@ -192,7 +192,7 @@ class LlamaServer:
|
|||
"post_sampling_probs": use_samplers,
|
||||
})
|
||||
|
||||
if shared.args.verbose:
|
||||
if shared.args.verbose and use_samplers:
|
||||
logger.info("GENERATE_PARAMS=")
|
||||
printable_payload = {k: v for k, v in payload.items() if k != "prompt"}
|
||||
pprint.PrettyPrinter(indent=4, sort_dicts=False).pprint(printable_payload)
|
||||
|
|
|
|||
Loading…
Reference in a new issue