Clay S. I'm getting this error as well.
https://app.clay.com/workspaces/12842/workbooks/wb_BfUdXdpFS2qk/tables/t_ZzBE7DxwMetR/views/gv_J274FaXbfZke
11.8k credits, so actually closer to 60% of our allocation but still way more that we expected to use only two days into a new refresh 😂
Steps to reproduce the bug:
Make sure you are using the GPT 4o model with a custom API key
Select a Clay template that was saved with examples on another table
Make any edits necessary to the template
Click "Save" then "Save and don't run"
Re-open the edit column box and remove any saved examples
Attempt to create new examples by previewing
Previewed rows will encounter the bug
Note:
If you delete the saved examples PRIOR to clicking "Save and Don't Run", generating examples from previewing rows will behave as expected.
Trying to generate examples without first clicking "Save and Don't Run" appears to send an empty prompt to the GPT 4o API
Just tried a similar AI enrichment and had it work. I think the bug has something to do with how the enrichment saves the prompt and examples. I'll write a detailed bug report below
Huh... I re-entered the prompt and it executed just fine, but when I went to generate examples from previewing rows, I got the error again.
I removed all references to other cells and I'm still getting the same error