https://promptfoo.dev/ logo
How to get completion text?
# ❓|questions
a
I'm using bedrock Claude as a provider; the output I receive is in the below format. {"completion":"Results from model....","stop_reason":"stop_sequence","stop":"\n\nHuman:"} Is it possible to get just the completion results? I have attached a screenshot of promptfooconfig file.
i
Try setting
Copy code
yaml
defaultTest:
  options:
    postprocess: output.completion
that will extract the
completion
from output
it does seem like this should be done automatically in the bedrock provider. I can get a fix in, but this should be a workaround ^^