Closed lfoppiano closed 1 year ago
@lfoppiano thanks for this, this is something we wanted to fix. I left one comment, but otherwise it looks good to me.
@lfoppiano looks great, let me test it a bit and then will merge it in!
@lfoppiano what is your request that is giving you that response?
@lfoppiano what is your request that is giving you that response?
It's a POST to https://api.promptlayer.com/track-request
, I'm not sure why it fails, might be a problem in my network.
@lfoppiano would you mind joining our discord and I can help you debug there?
@Jped no need, it was on my side and I fixed it 😄 Thanks anyway!
I've implemented a small fix to at least get the response status code, when a failure occurs.
I've also wrapped the code in the same method to reduce a bit the complexity.
I think this could be improved: