Get Reproducible Outputs with OpenAI
Snippet
Artificial Intelligence
Universal
Advanced
Snippets are pieces of workflows. You can copy and paste them directly into any Tray workflow.
New to snippets? Watch this video
For more details please see our Snippet Documentation
About this SnippetCopy
Copy
AI Infused process requires reproducible outputs. Take advantage of the new parameters from OpenAI to take your automations to the next level and get one step closer to production ready today.
We leverage two new parameters in the chat completions endpoint:
response_format
seed
To use the response_format
parameter you need to explicitly include JSON
somewhere in your messages
payload.
We included some demo data in the snippet so all you need is your OpenAI authentication to test how this works.
See it in ActionCopy
Copy