leondz / garak

LLM vulnerability scanner
https://discord.gg/uVch4puUCs
Apache License 2.0
1.32k stars 151 forks source link

Bugfix/leakreplay output setting #790

Closed leondz closed 2 months ago

leondz commented 2 months ago

resolves #789

any setting of attempt.outputs adds another output layer, so the leakreplay's editing in _postprocess_hook() is updated to manipulate the underlying attempt.messages structure instead.