Open AI --> JSON Output
Has anyone had any luck doing function calling JSON output using OpenAI API in BuildShip?
I have tried
1) using ChatGPT to generate NodeJS logic code that I can insert manually into the node logic
2) modifying the logic code of the OpenAI chat node template to include type": "json_object" under the message (and changing model to gpt-3.5-turbo-1106 or gpt-4-1106-preview)
3) using the AI feature to generate a node
But none of them have seemed to work properly so far.
The closest I got was using the Chat template but that did not seem to output JSON, but rather string in the structure of JSON (indicating to me that the function calling is not being triggered properly)
I’m not a developer by background but learn fast so appreciate any hacks/tips to be able to figure this out myself
I have tried
1) using ChatGPT to generate NodeJS logic code that I can insert manually into the node logic
2) modifying the logic code of the OpenAI chat node template to include type": "json_object" under the message (and changing model to gpt-3.5-turbo-1106 or gpt-4-1106-preview)
3) using the AI feature to generate a node
But none of them have seemed to work properly so far.
The closest I got was using the Chat template but that did not seem to output JSON, but rather string in the structure of JSON (indicating to me that the function calling is not being triggered properly)
I’m not a developer by background but learn fast so appreciate any hacks/tips to be able to figure this out myself
