Enhancement: Add JSON Mode to the Playground

Summary

Is it possible to get a “JSON Mode” toggle/checkbox added to the playground for testing? It would be nice to have a reliable way to test JSON outputs as it is an option via the API.

Current Behavior

  • currently there is no way to enable JSON mode in the playground.

Proposed Change

  • add a toggle or checkbox to enable/disable JSON mode.

Just something simple:


or…
image

Purpose/Outcome

  • allow developers to test their prompts that require JSON output in the same manner as the API.

Benefits

  • ability to test JSON mode via the playground.
  • more accurate testing/debugging, as it matches the API arguments.

Possible Drawbacks

  • none

Additional Context

This was brought up back in November (Is it possible to enable JSON Mode in the playground?) and there has been no update or action.

4 Likes