solS
BuildShip2y ago
sol

swipe - Seems to be a bug in the OpenAPI JSON G...

Seems to be a bug in the OpenAPI JSON Generator node could use some love as it seems to be either be broken or not functioning as expected:
1. jsonResponse is legacy from a previous node and probably should be removed from the code
2. The node does not seem to output an object, but a JSON string instead. Perhaps this is as-designed, but it was not intuitive. I changed the final line to:

const output = response.choices[0].message.content; return JSON.parse(output);
Screenshot_2024-05-21_at_5.50.43_AM.png
Was this page helpful?